Yes, I Know IT ! 🎓 2 years ago • • Yes, I Know IT ! 🎓 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 #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 ! 🎓 • 2 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 • 2 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 • 2 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 • 2 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 • 2 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 • • •