5 ms·
Thanks. z is great! If only I had found this before. I actually googled a lot before writing this (last year April) but couldn't find something like z. Anyways
by vigneshwaran 13y ago
Thanks. z is great! If only I had found this before. I actually googled a lot before writing this (last year April) but couldn't find something like z.
Anyways z always changes directory. Using bd within backticks will just print the path without changing the directory. We can use that with other commands like ls, zip etc. Example: "ls `bd <starting letters>`" would only print the contents without changing the directory.
- arjunrc 13y agoAn obligatory addition - check out fasd (https://github.com/clvv/fasd https://github.com/clvv/fasd), inspired by z. In addition to "z foldername" to move around, you can do things like "v vimrc" or "v freetds.conf" to directly edit files, where ever you are. It's available on homebrew.