From 04ba47c2c7d469f509b58a0cf82a537e26425603 Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Fri, 6 Oct 2017 17:45:38 -0300 Subject: [PATCH] popd: fixed description. Added in linux and osx. Removed from common. --- pages/{common => linux}/popd.md | 0 pages/osx/popd.md | 15 +++++++++++++++ 2 files changed, 15 insertions(+) rename pages/{common => linux}/popd.md (100%) create mode 100644 pages/osx/popd.md diff --git a/pages/common/popd.md b/pages/linux/popd.md similarity index 100% rename from pages/common/popd.md rename to pages/linux/popd.md diff --git a/pages/osx/popd.md b/pages/osx/popd.md new file mode 100644 index 0000000000..fab4246dc2 --- /dev/null +++ b/pages/osx/popd.md @@ -0,0 +1,15 @@ +# popd + +> Remove a directory placed on the directory stack via the pushd shell built-in. + +- Remove the top directory from the stack and cd to it: + +`popd` + +- Remove the Nth directory (starting from zero to the left from the list printed with `dirs`): + +`popd +N` + +- Remove the Nth directory (starting from zero to the right from the list printed with `dirs`): + +`popd -N`