2 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
Peter Vágner likes this.
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
% cd -
should go to the previous directory too.
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 • • •