News for hackers. Stuff that matters.
Re:Linux Terminal Goods by msoucy on Thursday September 19, 2019 @10:40AM (#21016608)
Mine is similar, but only does one cd command - to allow better use of `cd -`

    up() {
        local ups="."
        for((i=0;i<${1:-1};i++)); do
            ups="${ups}/.."
        done
        builtin cd "$ups"
    }
Re:Linux Terminal Goods by archi42 on Thursday September 19, 2019 @01:16PM (#21018323)
"cd -" is equal to "cd $OLDPWD", so that still works with my function ;)

Though yours looks much nicer ^^"

Re:Linux Terminal Goods by imglorp on Thursday September 19, 2019 @12:54PM (#21018069)
Ooo, good idea!