add zstyle to disable alias sl=ls
sl is the command alias for [`sapling`](https://github.com/facebook/sapling) so this alias conflicts with it. Add an option to disable the alias.
This commit is contained in:
parent
5ac930d96b
commit
ae92f6ec8b
2 changed files with 13 additions and 1 deletions
|
@ -142,6 +142,15 @@ zstyle ':prezto:module:utility' correct 'no'
|
||||||
- `lu` lists sorted by date, most recent last, shows access time.
|
- `lu` lists sorted by date, most recent last, shows access time.
|
||||||
- `sl` lists directory contents (correction for `ls`).
|
- `sl` lists directory contents (correction for `ls`).
|
||||||
|
|
||||||
|
To disable the correction of `sl` to `ls`, which conflicts with
|
||||||
|
[sapling](https://github.com/facebook/sapling), add the following to
|
||||||
|
_`${ZDOTDIR:-$HOME}/.zpreztorc`_:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
zstyle ':prezto:module:utility' slls 'no'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### macOS Everywhere
|
### macOS Everywhere
|
||||||
|
|
||||||
- `o` opens files and directories (`open` or `xdg-open`).
|
- `o` opens files and directories (`open` or `xdg-open`).
|
||||||
|
|
|
@ -122,7 +122,10 @@ alias lk='ll -Sr' # Lists sorted by size, largest last.
|
||||||
alias lt='ll -tr' # Lists sorted by date, most recent last.
|
alias lt='ll -tr' # Lists sorted by date, most recent last.
|
||||||
alias lc='lt -c' # Lists sorted by date, most recent last, shows change time.
|
alias lc='lt -c' # Lists sorted by date, most recent last, shows change time.
|
||||||
alias lu='lt -u' # Lists sorted by date, most recent last, shows access time.
|
alias lu='lt -u' # Lists sorted by date, most recent last, shows access time.
|
||||||
alias sl='ls' # Correction for common spelling error.
|
|
||||||
|
if zstyle -T ':prezto:module:utility' slls; then
|
||||||
|
alias sl='ls' # Correction for common spelling error.
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*GNU *} ]]; then
|
if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*GNU *} ]]; then
|
||||||
alias lx='ll -XB' # Lists sorted by extension (GNU only).
|
alias lx='ll -XB' # Lists sorted by extension (GNU only).
|
||||||
|
|
Loading…
Add table
Reference in a new issue