Browse Source

Fix issue #1635. Option to disable GNU ls to group directories first.

master
Tercio Gaudencio Filho 6 years ago committed by Indrajit Raychaudhuri
parent
commit
6fdccd20b0
  1. 6
      modules/utility/README.md
  2. 5
      modules/utility/init.zsh

6
modules/utility/README.md

@ -18,6 +18,12 @@ disabled, type indicators (\*, /, =>, @, =, |, %) will be appended to entries.
zstyle ':prezto:module:utility:ls' color 'no' 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*: To disable `diff` highlighting, add the following line to *zpreztorc*:
```sh ```sh

5
modules/utility/init.zsh

@ -73,7 +73,10 @@ fi
# ls # ls
if is-callable 'dircolors'; then if is-callable 'dircolors'; then
# GNU Core Utilities # 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 if zstyle -t ':prezto:module:utility:ls' color; then
# Call dircolors to define colors if they're missing # Call dircolors to define colors if they're missing

Loading…
Cancel
Save