added plugin

pull/667/head
cornfeedhobo 2016-02-12 09:23:40 -06:00
parent 1293dbf086
commit 92dce20e3c
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
cite about-plugin
about-plugin 'cdup - traverse parent directories with ease. inspired by a script from tyskby'
cdup() {
if [[ $1 =~ .{2,} ]]; then
local count
count=${1:1}
for ((i=1; i<=${#count}; i++)); do
cd ..
done
pwd
fi
}