mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 16:18:00 +00:00
Fix issue #1635. Option to disable GNU ls to group directories first.
This commit is contained in:
parent
bfe1815cbf
commit
1ed5331e84
@ -18,6 +18,12 @@ disabled, type indicators (\*, /, =>, @, =, |, %) will be appended to entries.
|
||||
zstyle ':prezto:module:utility:ls' color 'no'
|
||||
```
|
||||
|
||||
To disable GNU coreutils `ls` to list directories grouped first, add the following line to *zpreztorc*:
|
||||
|
||||
```sh
|
||||
zstyle ':prezto:module:utility:ls' dirs-first 'no'
|
||||
```
|
||||
|
||||
To disable `diff` highlighting, add the following line to *zpreztorc*:
|
||||
|
||||
```sh
|
||||
|
@ -73,7 +73,10 @@ fi
|
||||
# ls
|
||||
if is-callable 'dircolors'; then
|
||||
# GNU Core Utilities
|
||||
alias ls='ls --group-directories-first'
|
||||
|
||||
if zstyle -T ':prezto:module:utility:ls' dirs-first; then
|
||||
alias ls="${aliases[ls]:-ls} --group-directories-first"
|
||||
fi
|
||||
|
||||
if zstyle -t ':prezto:module:utility:ls' color; then
|
||||
# Call dircolors to define colors if they're missing
|
||||
|
Loading…
Reference in New Issue
Block a user