dotfiles/.local/bin/up

13 lines
144 B
Bash
Executable File

#!/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