feat(directories): add config to skip aliases (#11469)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
master
Hazael Sanchez 3 years ago committed by GitHub
parent b256c12d2e
commit ea4854dba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      README.md
  2. 2
      lib/directories.zsh

@ -276,6 +276,16 @@ If you have many functions that go well together, you can put them as a `XYZ.plu
If you would like to override the functionality of a plugin distributed with Oh My Zsh, create a plugin of the same name in the `custom/plugins/` directory and it will be loaded instead of the one in `plugins/`. If you would like to override the functionality of a plugin distributed with Oh My Zsh, create a plugin of the same name in the `custom/plugins/` directory and it will be loaded instead of the one in `plugins/`.
### Remove directories aliases
If you want to skip ohmyzsh default
[directories aliases](https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/directories.zsh) you can add the
following snippet to your `zshrc`, before loading `oh-my-zsh.sh` script:
```zsh
zstyle ':omz:directories' aliases no
```
## Getting Updates ## Getting Updates
By default, you will be prompted to check for updates every 2 weeks. You can choose other update modes by adding a line to your `~/.zshrc` file, **before Oh My Zsh is loaded**: By default, you will be prompted to check for updates every 2 weeks. You can choose other update modes by adding a line to your `~/.zshrc` file, **before Oh My Zsh is loaded**:

@ -3,6 +3,8 @@ setopt auto_pushd
setopt pushd_ignore_dups setopt pushd_ignore_dups
setopt pushdminus setopt pushdminus
zstyle -T ':omz:directories' aliases || return
alias -g ...='../..' alias -g ...='../..'
alias -g ....='../../..' alias -g ....='../../..'
alias -g .....='../../../..' alias -g .....='../../../..'

Loading…
Cancel
Save