3 ms·
And with CDABLE_VARS set, you can simply do: dir_name In fact, you don't even have to use the directory hash for this, you just do, e.g.: MY_DIR=/path/to/dir; M
by belovedeagle 13y ago
And with CDABLE_VARS set, you can simply do: dir_name
In fact, you don't even have to use the directory hash for this, you just do, e.g.: MY_DIR=/path/to/dir; MY_DIR
Frankly, this is far superior to the linked method.
- roob 13y agoExcept tab completion is annoying since zsh will include commands and environment variables in its guesses. The linked method simply provides a way to store the directory hash across sessions.