Created
December 1, 2017 05:12
-
-
Save FrankFang/1246dfe20803607ed7c9b86e40b4486a 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
unalias z | |
j() { | |
if [[ -z "$*" ]]; then | |
cd "$(_z -l 2>&1 | fzf +s | sed 's/^[0-9,.]* *//')" | |
else | |
_last_z_args="$@" | |
_z "$@" | |
fi | |
} | |
jj() { | |
cd "$(_z -l 2>&1 | sed 's/^[0-9,.]* *//' | fzf -q $_last_z_args)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment