Created
January 1, 2016 01:41
-
-
Save aheadlead/56377b1c0cbdee1e7549 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 快速往上 cd .. | |
# cd .. ; cd .. ; cd .. 等同于 cdj 3 | |
function cdj { | |
CDJUMP_LAST_PWD=`pwd` | |
for (( i=0; i<$1; i++ )) | |
do | |
cd .. | |
echo "Jump to `pwd`" | |
done | |
} | |
# 3 天后 updated: 如果你数错了要跳多少层的话...试试 cdj_fuck | |
function cdj_fuck { | |
cd ${CDJUMP_LAST_PWD} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment