3 ms·
By far my biggest timesaver aliases are for cd-ing to commonly used directories. alias ch="ch ~/Repositories/my_project/foo" alias cn="cd ~/Repositories/my_ot
by mdonahoe 14y ago
By far my biggest timesaver aliases are for cd-ing to commonly used directories.
alias ch="ch ~/Repositories/my_project/foo"
alias cn="cd ~/Repositories/my_other_project"
- mmozuras 14y agoInstead of creating aliases, I'm using z (https://github.com/rupa/z https://github.com/rupa/z) for that. You use it instead of cd to navigate to the most frequently used directories anywhere.
- mdonahoe 14y agoThanks for the tip. I'll try it out. However, I am wary of "smart" things that change with usage. I like my tools to be consistent and predicable. For example, I am constantly getting burned by alt-tab That said, I imagine the "frecency" component of z makes it more reliable.
- pydave 14y ago[bashmarks](https://github.com/huyng/bashmarks https://github.com/huyng/bashmarks) does something similar: it provides a command to set a named bookmark on the current directory, one to jump to a bookmark, and one to list bookmarks. (It lacks all of the magic of z -- it doesn't try to learn how you work. It's entirely explicit.)