Make up function just cd, not pushd

This commit is contained in:
Eryn Wells 2012-11-12 23:13:16 -08:00
parent 36258fa8ef
commit b1bd477d8b

4
zshrc
View file

@ -201,14 +201,14 @@ done
# ad nauseum) # ad nauseum)
function up { function up {
if [[ -z $1 ]]; then if [[ -z $1 ]]; then
pushd .. cd ..
else else
local updir='' local updir=''
for (( i=0; $i < $1; i++ )) for (( i=0; $i < $1; i++ ))
do do
updir="../$updir" updir="../$updir"
done done
pushd $updir cd $updir
fi fi
} }