Joined July 2012
·
Posted to
Linux - return to the last folder
over 1 year
ago
Ahh, just worked out you used pushd
instead of cd
e.g.
pushd /home/user
pushd /home
popd #takes you back to /home/user
Posted to
Linux - return to the last folder
over 1 year
ago
@xtagon - I get a bash: pushd: no other directory
and bash: popd: directory stack empty
when using those two
Achievements
220 Karma
4,220 Total ProTip Views
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Altruist
Increase developer well-being by sharing at least 20 open source projects
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Raven
Have at least one original repo where some form of shell script is the dominant language
Charity
Fork and commit to someone's open source project in need
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Forked
Have a project valued enough to be forked by someone else
Cub
Have at least one original jQuery or Prototype open source repo
Great tip! Although
--ignore-blank-lines
throws an error and I can't find it in the git spec?Edit: It appears my git version is not up to date! (also just seen @danielcsgomes reply!)