←back to thread

756 points speckx | 1 comments | | HN request time: 0.292s | source
Show context
revicon ◴[] No.45674313[source]
I have a bunch of little scripts and aliases I've written over the years, but none are used more than these...

alias ..='cd ..'

alias ...='cd ../..'

alias ....='cd ../../..'

alias .....='cd ../../../..'

alias ......='cd ../../../../..'

alias .......='cd ../../../../../..'

replies(6): >>45674378 #>>45674420 #>>45674599 #>>45675353 #>>45676254 #>>45678784 #
1. pfg_ ◴[] No.45676254[source]
fish lets you cd to a folder without 'cd' although you still need the slashes. I use it all the time.

    c $> pwd
    /a/b/c
    c $> dir1
    dir1 $> ..
    c $> ../..
    / $>