2021-05-04 01:59:31 +00:00
|
|
|
# Directory
|
2012-04-14 10:10:55 +00:00
|
|
|
|
|
|
|
Sets directory options and defines directory aliases.
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Options
|
2012-04-14 10:10:55 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- `AUTO_CD` auto changes to a directory without typing `cd`.
|
|
|
|
- `AUTO_PUSHD` pushes the old directory onto the stack on `cd`.
|
|
|
|
- `PUSHD_IGNORE_DUPS` does not store duplicates in the stack.
|
|
|
|
- `PUSHD_SILENT` does not print the directory stack after `pushd` or `popd`.
|
|
|
|
- `PUSHD_TO_HOME` pushes to the home directory when no argument is given.
|
|
|
|
- `CDABLE_VARS` changes directory to a path stored in a variable.
|
|
|
|
- `MULTIOS` writes to multiple descriptors.
|
|
|
|
- `EXTENDED_GLOB` uses extended globbing syntax.
|
|
|
|
- `CLOBBER` does not overwrite existing files with `>` and `>>`. Use `>!` and
|
|
|
|
`>>!` to bypass.
|
2012-04-14 10:10:55 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Aliases
|
2012-04-14 10:10:55 +00:00
|
|
|
|
2023-05-05 03:21:48 +00:00
|
|
|
Aliases are enabled by default. To disable them, add the following to
|
|
|
|
_`${ZDOTDIR:-$HOME}/.zpreztorc`_.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
zstyle ':prezto:module:directory:alias' skip 'yes'
|
|
|
|
```
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- `d` prints the contents of the directory stack.
|
|
|
|
- `1 ... 9` changes the directory to the **n** previous one.
|
2012-04-14 10:10:55 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Authors
|
2012-04-14 10:10:55 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
_The authors of this module should be contacted via the [issue tracker][1]._
|
2012-04-14 10:10:55 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- [James Cox](https://github.com/imajes)
|
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
2012-05-22 00:18:30 +00:00
|
|
|
|
2012-09-03 20:08:39 +00:00
|
|
|
[1]: https://github.com/sorin-ionescu/prezto/issues
|