by dawnerd · 7y ago · 0 comments
So instead of having to type `cd ~/Projects/someproject` you could just type `j some` and it'll end up there.
# 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`.>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