diff --git a/zsh/func/up b/zsh/func/up new file mode 100644 index 0000000..7a44c89 --- /dev/null +++ b/zsh/func/up @@ -0,0 +1,15 @@ +#!/usr/bin/zsh +# Go up $1 directories, where $1 is an integer (saves me from having to type ../ +# ad nauseum) +# Eryn Wells + +if [[ -z $1 ]]; then + cd .. +else + local updir='' + for (( i=0; $i < $1; i++ )) + do + updir="../$updir" + done + cd $updir +fi diff --git a/zshrc b/zshrc index 56a759c..6a8d8a7 100644 --- a/zshrc +++ b/zshrc @@ -149,27 +149,6 @@ function configure_completion #{{{ } #}}} -### -# FUNCTIONS -### - -# Generate a password - -# Go up $1 directories, where $1 is an integer (saves me from having to type ../ -# ad nauseum) -function up { - if [[ -z $1 ]]; then - cd .. - else - local updir='' - for (( i=0; $i < $1; i++ )) - do - updir="../$updir" - done - cd $updir - fi -} - configure_general configure_zle configure_fpath @@ -179,6 +158,7 @@ configure_history configure_completion configure_prompt + if [ -e $HOME/.zshrc.$SYS ]; then print_info_noisy 3 "Sourcing ${SYS}-specific Z Shell settings" source $HOME/.zshrc.$SYS