[zsh] Move func/ directory to zsh/functions
This commit is contained in:
parent
91da2fc583
commit
7c08c5131f
53 changed files with 1 additions and 1 deletions
15
zsh/functions/up
Normal file
15
zsh/functions/up
Normal file
|
|
@ -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 <eryn@erynwells.me>
|
||||
|
||||
if [[ -z $1 ]]; then
|
||||
cd ..
|
||||
else
|
||||
local updir=''
|
||||
for (( i=0; $i < $1; i++ ))
|
||||
do
|
||||
updir="../$updir"
|
||||
done
|
||||
cd $updir
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue