From a2e81a1fceb9b750eb523cdd52a4717f568c66c7 Mon Sep 17 00:00:00 2001 From: Kwang Kim Date: Thu, 7 Aug 2014 12:08:10 -0400 Subject: [PATCH] Added pushd.md --- pages/osx/pushd.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/osx/pushd.md diff --git a/pages/osx/pushd.md b/pages/osx/pushd.md new file mode 100644 index 0000000000..a4de2779aa --- /dev/null +++ b/pages/osx/pushd.md @@ -0,0 +1,15 @@ +# pushd + +> Place a directory on a stack so it can be accessed later + +- Switch to directory and push it on the stack + +`pushd < {{directory}}` + +- Switch first and second directories on the stack + +`pushd` + +- Rotate stack by making the 5th element the top of the stack + +`pushd +4`