3 ms·
I guess I'll share what I built for myself. https://gist.github.com/chanux/1119556 https://gist.github.com/chanux/1119556 (bash) https://gist.github.com/chanux
by chanux 2y ago
I guess I'll share what I built for myself.
https://gist.github.com/chanux/1119556 https://gist.github.com/chanux/1119556 (bash)
https://gist.github.com/chanux/9411092 https://gist.github.com/chanux/9411092 (fish)
That's `za <n>` to go back n directories up. It's a decade old and I still use this everyday.
I experimented with jumping up directory path by name with `xs`. But I don't use it that often (at all).
https://gist.github.com/chanux/08c6f53472190a02b33bd49100163d93 https://gist.github.com/chanux/08c6f53472190a02b33bd49100163...
- layer8 2y agoI have the following in my .bashrc: alias .='dot_func' alias ..='cd ../..' alias ...='cd ../../..' alias ....='cd ../../../..' alias .....='cd ../../../../..' dot_func () { if [ $# -eq 0 ]; then cd .. else source "$@" fi } It’s usually enough. :)
- wink 2y agoI had an alias ... for years and noticed I never really used it. `cd ..` coupled with `cd ~` seems to be good enough, really.