Yes, I Know IT ! π 3 years ago • • Yes, I Know IT ! π 3 years ago • • From a POSIX shell `$OLDPWD` holds the name of the previous working directory:cd /tmpecho You are here: $PWDecho You were here: $OLDPWDcd $OLDPWD#Unix #Linux #Shell #cd #linux #shell #unix #cd Languages Search Text Share via ... Peter Vágner likes this.
in reply to Yes, I Know IT ! π Aral Balkan in reply to Yes, I Know IT ! π • 3 years ago • • Neat :) Not being POSIX that doesnβt work for me in Fish shell but Alt+left-arrow goes to the previous working directory and Alt+right-arrow goes to the next.#fishShell #cd #linux #unix #linux #unix #fishshell #cd Languages Search Text Share via ...
in reply to Aral Balkan Hyde π· π in reply to Aral Balkan • 3 years ago • • % cd -should go to the previous directory too. Languages Search Text Share via ...
in reply to Hyde π· π Aral Balkan in reply to Hyde π· π • 3 years ago • • Ah, yes, Iβd misremembered it as cd -1 yesterday while trying out the posix stuff in fish and was wondering why it wasnβt working :) Languages Search Text Share via ...
in reply to Aral Balkan Hyde π· π in reply to Aral Balkan • 3 years ago • • with zsh, it works with cd -1 too π Languages Search Text Share via ...
in reply to Hyde π· π Aral Balkan in reply to Hyde π· π • 3 years ago • • Ah, then thatβs where I remember it from. I was on zsh before fish :) Languages Search Text Share via ...
Aral Balkan
in reply to Yes, I Know IT ! π • • •Neat :) Not being POSIX that doesnβt work for me in Fish shell but Alt+left-arrow goes to the previous working directory and Alt+right-arrow goes to the next.
#fishShell #cd #linux #unix
Hyde π· π
in reply to Aral Balkan • • •% cd -
should go to the previous directory too.
Aral Balkan
in reply to Hyde π· π • • •Hyde π· π
in reply to Aral Balkan • • •Aral Balkan
in reply to Hyde π· π • • •