mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Add git-status config knob
This commit is contained in:
parent
8a2725a170
commit
b22a1b69dd
2 changed files with 14 additions and 0 deletions
|
|
@ -25,6 +25,17 @@ If `true`, directories will be grouped first.
|
|||
Default: `false`
|
||||
|
||||
|
||||
### `git-status`
|
||||
|
||||
```zsh
|
||||
zstyle ':omz:plugins:eza' 'git-status' $BOOL
|
||||
```
|
||||
|
||||
If `true`, always add `--git` flag to indicate git status (if tracked / in a git repo).
|
||||
|
||||
Default: `false`
|
||||
|
||||
|
||||
### `header`
|
||||
|
||||
```zsh
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@ function _configure_eza() {
|
|||
if zstyle -t ':omz:plugins:eza' 'dirs-first'; then
|
||||
_EZA_TAIL+=("--group-directories-first")
|
||||
fi
|
||||
if zstyle -t ':omz:plugins:eza' 'git-status'; then
|
||||
_EZA_TAIL+=("--git")
|
||||
fi
|
||||
zstyle -s ':omz:plugins:eza' 'time-style' _val
|
||||
if [[ $_val ]]; then
|
||||
_EZA_TAIL+=("--time-style='$_val'")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue