Skip to content

Commit

Permalink
pushd: added platform specific examples in windows, osx and linux. Re…
Browse files Browse the repository at this point in the history
…moved from common. (tldr-pages#1535)
  • Loading branch information
sbrl authored Oct 13, 2017
2 parents c666f50 + 4ac50b7 commit e1cf267
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions pages/common/pushd.md → pages/linux/pushd.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pushd

> Place a directory on a stack so it can be accessed later.
> See also `popd` to switch back to original directory.
- Switch to directory and push it on the stack:

Expand Down
16 changes: 16 additions & 0 deletions pages/osx/pushd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# pushd

> Place a directory on a stack so it can be accessed later.
> See also `popd` to switch back to original directory.
- 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`
8 changes: 8 additions & 0 deletions pages/windows/pushd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# pushd

> Place a directory on a stack so it can be accessed later.
> See also `popd` to switch back to original directory.
- Switch to directory and push it on the stack:

`pushd {{directory}}`

0 comments on commit e1cf267

Please sign in to comment.