mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-13 23:44:22 +08:00
feat(eza): add color-scale options (#12841)
This commit is contained in:
1 parent
7a3695aadf
commit
04cba220f7
2 files changed
+31
No files matched your search
@@ -34,6 +34,14 @@ function _configure_eza() {
|
||||
if zstyle -t ':omz:plugins:eza' 'icons'; then
|
||||
_EZA_TAIL+=("--icons=auto")
|
||||
fi
|
||||
zstyle -s ':omz:plugins:eza' 'color-scale' _val
|
||||
if [[ $_val ]]; then
|
||||
_EZA_TAIL+=("--color-scale=$_val")
|
||||
fi
|
||||
zstyle -s ':omz:plugins:eza' 'color-scale-mode' _val
|
||||
if [[ $_val == (gradient|fixed) ]]; then
|
||||
_EZA_TAIL+=("--color-scale-mode=$_val")
|
||||
fi
|
||||
zstyle -s ':omz:plugins:eza' 'time-style' _val
|
||||
if [[ $_val ]]; then
|
||||
_EZA_TAIL+=("--time-style='$_val'")
|
||||
|
||||
Reference in new issue
Block a user