mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +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`
|
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`
|
### `header`
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,9 @@ function _configure_eza() {
|
||||||
if zstyle -t ':omz:plugins:eza' 'dirs-first'; then
|
if zstyle -t ':omz:plugins:eza' 'dirs-first'; then
|
||||||
_EZA_TAIL+=("--group-directories-first")
|
_EZA_TAIL+=("--group-directories-first")
|
||||||
fi
|
fi
|
||||||
|
if zstyle -t ':omz:plugins:eza' 'git-status'; then
|
||||||
|
_EZA_TAIL+=("--git")
|
||||||
|
fi
|
||||||
zstyle -s ':omz:plugins:eza' 'time-style' _val
|
zstyle -s ':omz:plugins:eza' 'time-style' _val
|
||||||
if [[ $_val ]]; then
|
if [[ $_val ]]; then
|
||||||
_EZA_TAIL+=("--time-style='$_val'")
|
_EZA_TAIL+=("--time-style='$_val'")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue