3 ms·
Been using zsh for years and many of these were new to me. I love #3 and use it daily. I find it most helpful to use this trick to type ".." or "..." and quickl
by mattacular 6y ago
Been using zsh for years and many of these were new to me. I love #3 and use it daily. I find it most helpful to use this trick to type ".." or "..." and quickly navigate back a dir or two. Of course you can do this in bash (and other shells) with aliases, it does not come out of the box like so many niceties in zsh.
- yboris 6y agoI have a favorite alias `u` (stands for "up") to go up a directory. 50% keystroke savings ;)
- cb321 6y agoI have a shell function `.` that goes up one: .() { if [ $# -eq 0 ]; then cd ..; else source $\*; fi; } then alias ..='cd ../..' alias ...='cd ../../..' . . So that "however many periods" goes up however many directory levels. Seems a coherent shorthand to me, though I guess uuuu also works.