diff options
author | 2025-03-01 01:38:55 +0100 | |
---|---|---|
committer | 2025-03-01 01:38:55 +0100 | |
commit | e37aa0648b20f5e70e40ad69561b210f222f902d (patch) | |
tree | 1df20ad9fb99202ed14633219f9945e42d5aafba /zuwu.zsh | |
parent | e90726c70dd224f1473124ffb05f1720056ea740 (diff) | |
parent | 71385bcaa56690e1320a4b8b3f8af70a7d6938f2 (diff) | |
download | zuwu-e37aa0648b20f5e70e40ad69561b210f222f902d.tar.gz zuwu-e37aa0648b20f5e70e40ad69561b210f222f902d.tar.bz2 zuwu-e37aa0648b20f5e70e40ad69561b210f222f902d.tar.lz zuwu-e37aa0648b20f5e70e40ad69561b210f222f902d.zip |
merge: Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'zuwu.zsh')
-rwxr-xr-x | zuwu.zsh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -121,6 +121,7 @@ reloadopt() { noop "${DELETE_CHAR:=true}" noop "${INSEND_MOVE_KEY:=true}" noop "${BINDKEY_KIND:=e}" + noop "${USE_COLOURED_LS_GREP:=true}" __opt() { if "$1"; then @@ -140,6 +141,14 @@ reloadopt() { __opt "$DO_AUTOCD" autocd __opt "$DO_ERR_BEEP" beep __opt "$DO_EXTENDED_BLOB" extendedglob + if "$USE_COLOURED_LS_GREP"; then + if [[ "$(which ls 2>&1)" != *color=* ]]; then + alias ls="ls --color=auto"; + fi + if [[ "$(which grep 2>&1)" != *color=* ]]; then + alias grep="grep --color=auto" + fi + fi if "$LINE_OR_BEGIN_SEARCH_KEY"; then _bkey() { zle -N "$1" |