Created
September 26, 2019 02:45
-
-
Save zolotyh/281e6d071bb096b55d1a86cab288fba4 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
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh | |
j() { | |
if [[ "$#" -ne 0 ]]; then | |
cd $(autojump $@) | |
return | |
fi | |
cd "$(autojump -s | gsed '/_____/Q; s/^[0-9,.:]*\s*//' | fzf --height 40% --nth 1.. --reverse --inline-info +s --tac --query "${*##-* }" )" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment