Created
December 13, 2017 03:10
-
-
Save l4u/06502cf680b9a3817efddfb0a9a6ede8 to your computer and use it in GitHub Desktop.
autojump(macOS) + fzf for fish shell
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
alias j="cd (cat ~/Library/autojump/autojump.txt | sort -nr | awk '{print \$2}' | fzf +s)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn‘t work when the path contains a space (since
awk
splits on whitespace by default). But it will work with this modification:This works because the number and path in the
autojump.txt
file is separated by aTAB
(/t
).