dotfiles/.local/bin/up

13 lines
144 B
Plaintext
Raw Normal View History

#!/bin/sh
# Go up a number of dirs
if [[ $# < 1 ]] ; then
cd ..
else
CDSTR=""
for i in {1..$1} ; do
CDSTR="../$CDSTR"
done
cd $CDSTR
fi