From 8bdd25d67fc45e035a121ebdd8f051f07996cb18 Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Mon, 9 Oct 2017 00:09:49 -0300 Subject: [PATCH] pushd: added platform specific examples in windows, osx and linux. Removed from common. --- pages/{common => linux}/pushd.md | 0 pages/osx/pushd.md | 15 +++++++++++++++ pages/windows/pushd.md | 7 +++++++ 3 files changed, 22 insertions(+) rename pages/{common => linux}/pushd.md (100%) create mode 100644 pages/osx/pushd.md create mode 100644 pages/windows/pushd.md diff --git a/pages/common/pushd.md b/pages/linux/pushd.md similarity index 100% rename from pages/common/pushd.md rename to pages/linux/pushd.md diff --git a/pages/osx/pushd.md b/pages/osx/pushd.md new file mode 100644 index 0000000000..97d7a43756 --- /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` diff --git a/pages/windows/pushd.md b/pages/windows/pushd.md new file mode 100644 index 0000000000..1efe854a2b --- /dev/null +++ b/pages/windows/pushd.md @@ -0,0 +1,7 @@ +# pushd + +> Place a directory on a stack so it can be accessed later. + +- Switch to directory and push it on the stack: + +`pushd {{directory}}`