4 ms·
There's a static version of this built into bash, btw: # allow directory variables shopt -s cdable_vars # set a directory variable export
by dflock 8y ago
There'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`.