mirror of
https://github.com/iridakos/goto.git
synced 2025-05-19 00:40:20 -07:00
Update outline of README.
This commit is contained in:
parent
cb4a353012
commit
412126b9bb
50
README.md
50
README.md
@ -55,34 +55,11 @@ To change to an aliased directory, type:
|
|||||||
goto <alias>
|
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:
|
#### Example:
|
||||||
```bash
|
```bash
|
||||||
goto dev
|
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
|
### Register an alias
|
||||||
To register a directory alias, type:
|
To register a directory alias, type:
|
||||||
```bash
|
```bash
|
||||||
@ -199,6 +176,33 @@ or
|
|||||||
goto --version
|
goto --version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Extras
|
||||||
|
|
||||||
|
### Push before changing directories
|
||||||
|
|
||||||
|
To first push the current directory onto the directory stack before changing directories, type:
|
||||||
|
```bash
|
||||||
|
goto -p <alias>
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```bash
|
||||||
|
goto --push <alias>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
* ~~Test on macOS~~ extensively
|
* ~~Test on macOS~~ extensively
|
||||||
|
Loading…
x
Reference in New Issue
Block a user