mirror of
https://github.com/iridakos/goto.git
synced 2025-05-17 16:00:17 -07:00
adds documentation for push/pop commands
This commit is contained in:
parent
e53f05c21e
commit
873ee5a05d
23
README.md
23
README.md
@ -44,11 +44,34 @@ To change to an aliased directory, type:
|
||||
goto <alias>
|
||||
```
|
||||
|
||||
To first push the current directory onto the directory stack before changing directories, type:
|
||||
```bash
|
||||
goto -p <alias>
|
||||
```
|
||||
or
|
||||
```bash
|
||||
goto --push <alias>
|
||||
```
|
||||
|
||||
#### 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user