3 ms·
I have a favorite alias `u` (stands for "up") to go up a directory. 50% keystroke savings ;)
by yboris 6y ago
I 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.