mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Use zstyle instead of variables for configuration.
This commit is contained in:
parent
60f39d8d91
commit
f0499b76c3
13 changed files with 156 additions and 103 deletions
|
|
@ -64,7 +64,7 @@ export VISUAL="vim"
|
|||
export PAGER='less'
|
||||
|
||||
# Grep
|
||||
if check-bool "$COLOR"; then
|
||||
if zstyle -t ':omz:environment:grep' color; then
|
||||
export GREP_COLOR='37;45'
|
||||
export GREP_OPTIONS='--color=auto'
|
||||
fi
|
||||
|
|
@ -89,7 +89,7 @@ if (( $+commands[lesspipe.sh] )); then
|
|||
fi
|
||||
|
||||
# Termcap
|
||||
if check-bool "$COLOR"; then
|
||||
if zstyle -t ':omz:environment:termcap' color; then
|
||||
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
|
||||
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
|
||||
export LESS_TERMCAP_me=$'\E[0m' # end mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue