From a5fc0b5f0a3f62f4fb99dff49d6acfacdbafad27 Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Wed, 4 Oct 2017 23:35:05 -0300 Subject: [PATCH 1/8] pushd: add page --- pages/common/popd.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/popd.md diff --git a/pages/common/popd.md b/pages/common/popd.md new file mode 100644 index 0000000000..84537a09b8 --- /dev/null +++ b/pages/common/popd.md @@ -0,0 +1,16 @@ +# Popd + +> Removes 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` + +- Removes the Nth directory (starting from zero to the left from the list printed with dirs): + +`popd +N` + +- Removes the Nth directory (starting from zero to the right from the list printed with dirs): + +`popd -N` + From 08c725e65125cf909811f461868b64ccb20c884b Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Wed, 4 Oct 2017 23:42:28 -0300 Subject: [PATCH 2/8] pushd: fix trailing whitespace --- pages/common/popd.md | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/common/popd.md b/pages/common/popd.md index 84537a09b8..6299ac8da1 100644 --- a/pages/common/popd.md +++ b/pages/common/popd.md @@ -13,4 +13,3 @@ - Removes the Nth directory (starting from zero to the right from the list printed with dirs): `popd -N` - From 7f63bce45ed5f0216fd63b18b221dddd8a116d9f Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Wed, 4 Oct 2017 23:49:14 -0300 Subject: [PATCH 3/8] pushd: fix example description --- pages/common/popd.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/popd.md b/pages/common/popd.md index 6299ac8da1..bd9761b5aa 100644 --- a/pages/common/popd.md +++ b/pages/common/popd.md @@ -1,15 +1,15 @@ # Popd -> Removes a directory placed on the directory stack via the pushd shell built-in. +> 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` -- Removes the Nth directory (starting from zero to the left from the list printed with dirs): +- Remove the Nth directory (starting from zero to the left from the list printed with dirs): `popd +N` -- Removes the Nth directory (starting from zero to the right from the list printed with dirs): +- Remove the Nth directory (starting from zero to the right from the list printed with dirs): `popd -N` From 04ba47c2c7d469f509b58a0cf82a537e26425603 Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Fri, 6 Oct 2017 17:45:38 -0300 Subject: [PATCH 4/8] 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` From 5f255cca7daa568170f6669f326520a43deca353 Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Fri, 6 Oct 2017 17:57:45 -0300 Subject: [PATCH 5/8] popd: Modified description --- pages/linux/popd.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/linux/popd.md b/pages/linux/popd.md index bd9761b5aa..fab4246dc2 100644 --- a/pages/linux/popd.md +++ b/pages/linux/popd.md @@ -1,4 +1,4 @@ -# Popd +# popd > Remove a directory placed on the directory stack via the pushd shell built-in. @@ -6,10 +6,10 @@ `popd` -- Remove the Nth directory (starting from zero to the left from the list printed with dirs): +- 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): +- Remove the Nth directory (starting from zero to the right from the list printed with `dirs`): `popd -N` From f103ad05d113c42992aad3186e66abd68cb27113 Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Sun, 8 Oct 2017 23:21:56 -0300 Subject: [PATCH 6/8] popd: added page for windows --- pages/windows/popd.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pages/windows/popd.md diff --git a/pages/windows/popd.md b/pages/windows/popd.md new file mode 100644 index 0000000000..7c79c54c9b --- /dev/null +++ b/pages/windows/popd.md @@ -0,0 +1,7 @@ +# popd + +> Changes the current directory to the directory stored by the `pushd` command + +- Switch to directory at the top of the stack: + +`popd` \ No newline at end of file From c773e52604e0b7c7e8e2617b6c4886ec46719120 Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Sun, 8 Oct 2017 23:41:57 -0300 Subject: [PATCH 7/8] popd: fix format issues --- pages/windows/popd.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/windows/popd.md b/pages/windows/popd.md index 7c79c54c9b..b4ff0870fc 100644 --- a/pages/windows/popd.md +++ b/pages/windows/popd.md @@ -1,7 +1,7 @@ # popd -> Changes the current directory to the directory stored by the `pushd` command +> Changes the current directory to the directory stored by the `pushd` command. - Switch to directory at the top of the stack: -`popd` \ No newline at end of file +`popd` From 57d3300404add617bc1bea953bdc88c54aa5541f Mon Sep 17 00:00:00 2001 From: Juan Martin Enriquez Date: Mon, 9 Oct 2017 23:17:16 -0300 Subject: [PATCH 8/8] popd: fixed description --- pages/linux/popd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/popd.md b/pages/linux/popd.md index fab4246dc2..34576cbe7c 100644 --- a/pages/linux/popd.md +++ b/pages/linux/popd.md @@ -1,6 +1,6 @@ # popd -> Remove a directory placed on the directory stack via the pushd shell built-in. +> Remove a directory placed on the directory stack by the `pushd` command. - Remove the top directory from the stack and cd to it: