Re:OS X Command Line Utilities
by neumann on Thursday May 15, 2014 @07:29AM
(#7748819)
Another trick I learned from an older HN comment is to create a .marks directory in your home directory and then add the following to your .zshrc
Now to remember a directory you type
and to jump to that directory you type
To list all your shortcuts
Depending on the version of ls you might have to change the -f9 parameter to -f8 for marks functions
[ Parent
| on HN ]
Or just install autojump and be done with it ;-).
You can use hop to similar end, and it's got support for shortest unique name and tab completion.
https://github.com/Cue/hop
Re:OS X Command Line Utilities
by mattgreenrocks on Thursday May 15, 2014 @11:34AM
(#7750028)
I have a minimal take on this: j <project> to jump to any directory below ~/Projects. Supports tab completion, as it should.
https://github.com/mattgreen/dotfiles/blob/master/zsh/jump.z...
I prefer using z, which is purely written in bash.