4 ms·
Not strictly an alias, but autojump has been a huge productivity booster for me. Installing it sets up an alias of `j` which guesses the best directory to cd to
by dawnerd 8y ago
Not strictly an alias, but autojump has been a huge productivity booster for me. Installing it sets up an alias of `j` which guesses the best directory to cd to based on your cd history.
So instead of having to type `cd ~/Projects/someproject` you could just type `j some` and it'll end up there.
https://github.com/wting/autojump https://github.com/wting/autojump
- formatkaka 8y ago+1. Very useful extension
- deleted 8y ago[deleted]
- itaysk 8y agoI've been using z and it's great: https://github.com/rupa/z https://github.com/rupa/z
- odn86 8y agoSecond using z. I couldn't figure out how to get autojump working on windows linux subsystem but z worked perfect right out of the box.
- stinos 8y agoSuch a timesaver indeed. The other one would be fzf [1]. Together they get rid of the endless cd'ing and cursing on the default Ctrl-R for being rather stupid and useless :) And there are powershell counterparts as well (ZLocation and PsFzf). [1] https://github.com/junegunn/fzf https://github.com/junegunn/fzf
- dividuum 8y agoThanks a lot! Something like that was one of the tiny tools I wrote back on DOS using Borland Pascal (I named it xcd). I figured something like this existed but I never really investigated. autojump is even included in Debian/Ubuntu, so it is trivial to use. I guess putting aside an hour per month to actively apply/install these little tools would be really useful.
- jciochon 8y agoShoutout as well to the various `warp` implementations[1,2,3]. Instead of guessing, you set "warp points" so for your example you can do something like: >cd ~/Projects/someproject >wd add . some From then on you can use `wd some` to warp to that dir. [1]: https://github.com/kigster/warp-dir https://github.com/kigster/warp-dir [2]: https://github.com/mfaerevaag/wd https://github.com/mfaerevaag/wd [3]: https://github.com/troyxmccall/wd https://github.com/troyxmccall/wd
- dawnerd 8y agoOh that's slick! That will be helpful for a few of my similarly named projects that autojump gets wrong sometimes.
- dflock 8y agoThere's a static version of this built into bash, btw: # allow directory variables shopt -s cdable_vars # set a directory variable export some=~/Projects/someproject You can then say `cd some` from anywhere and end up in `~/Projects/someproject`.