2018-06-15 13:43:04 +00:00
|
|
|
#!/usr/bin/env zsh
|
2018-02-23 09:38:24 +00:00
|
|
|
|
2019-04-21 11:42:15 +00:00
|
|
|
# find editor
|
|
|
|
export EDITOR="nvim"
|
|
|
|
export VISUAL="$EDITOR"
|
2018-02-23 09:38:24 +00:00
|
|
|
|
2019-09-24 19:34:15 +00:00
|
|
|
export PAGER='less'
|
|
|
|
export LESS='--RAW-CONTROL-CHARS'
|
2019-08-27 13:18:23 +00:00
|
|
|
|
2019-09-24 19:34:15 +00:00
|
|
|
export CLICOLOR=1
|
2019-09-11 15:08:00 +00:00
|
|
|
|
2019-09-24 19:34:15 +00:00
|
|
|
# BSD ls colors
|
|
|
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
|
|
|
# GNU ls colors
|
2019-09-11 15:08:00 +00:00
|
|
|
if [[ -z "$LS_COLORS" ]] && command_exists dircolors; then
|
|
|
|
eval "$(dircolors --bourne-shell)"
|
|
|
|
fi
|
2020-01-04 21:20:09 +00:00
|
|
|
|
|
|
|
# see COLORS in jq(1)
|
|
|
|
jq_colors=(
|
|
|
|
"0;38;5;16" # null
|
|
|
|
"0;38;5;16" # false
|
|
|
|
"0;38;5;16" # true
|
|
|
|
"0;38;5;16" # numbers
|
2020-01-05 17:00:13 +00:00
|
|
|
"0;32" # strings
|
|
|
|
"0;39" # arrays
|
|
|
|
"0;39" # objects
|
2020-01-04 21:20:09 +00:00
|
|
|
)
|
2020-05-11 11:20:26 +00:00
|
|
|
# join all values from jq_colors with a colon
|
2020-01-04 21:20:09 +00:00
|
|
|
export JQ_COLORS="${(j.:.)jq_colors}"
|
2020-01-05 17:00:13 +00:00
|
|
|
unset jq_colors
|
2020-11-04 00:09:45 +00:00
|
|
|
|
2020-11-30 17:29:30 +00:00
|
|
|
export HOMEBREW_NO_AUTO_UPDATE=1
|