From 873ee5a05d9b92dd20f19f0116737e00a2e550bf Mon Sep 17 00:00:00 2001 From: Shawn Wallis Date: Fri, 9 Mar 2018 13:45:18 -0500 Subject: [PATCH] adds documentation for push/pop commands --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index b5c8737..b5cf731 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,34 @@ To change to an aliased directory, type: goto ``` +To first push the current directory onto the directory stack before changing directories, type: +```bash +goto -p +``` +or +```bash +goto --push +``` + #### Example: ```bash goto dev ``` +### Revert to a pushed directory +To return to a pushed directory, type: +```bash +goto -o +``` +or +```bash +goto --pop +``` + +#### Notes + +This command is equivalent to `popd`, but within the `goto` command. + ### Register an alias To register a directory alias, type: ```bash