mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-27 08:48:56 +01:00
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
# Should the list (text, borders) be drawn in bold
|
|
# Value 1 is the default
|
|
local bold=0
|
|
|
|
# Main color pair (foreground/background)
|
|
local colorpair="white/black"
|
|
|
|
# Should draw the border?
|
|
local border=0
|
|
|
|
# Combinations of colors to try out with Ctrl-T and Ctrl-G
|
|
# The last number is the bold option, 0 or 1
|
|
local -a themes
|
|
themes=( "white/black/1" "green/black/0" "green/black/1" "white/blue/0" "white/blue/1"
|
|
"magenta/black/0" "magenta/black/1" )
|
|
|
|
# Uncomment when using new (>5.2) Zsh version that supports 256 colors in zcurses
|
|
#themes=( "white/17/0" "10/17/1" "white/24/1" "white/22/0" "white/22/1" "white/25/0" "white/25/1"
|
|
# "white/59/0" "white/59/1" "white/60/0" "white/60/1" "white/61/0" "white/61/1" "black/65/0"
|
|
# "black/244/0" )
|
|
|
|
# When 1, pressing enter when in search mode will not
|
|
# only leave the mode, but also do selection and leave
|
|
# n-history
|
|
local NLIST_INSTANT_SELECT=0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
# Zshrc integration. All below variables can
|
|
# be set in zshrc and will have precedence
|
|
# over config files
|
|
#
|
|
|
|
# 1. znt_list_bold
|
|
bold=${znt_list_bold:-$bold}
|
|
|
|
# 2. znt_list_colorpair
|
|
colorpair=${znt_list_colorpair:-$colorpair}
|
|
|
|
# 3. znt_list_border
|
|
border=${znt_list_border:-$border}
|
|
|
|
# 4. znt_list_themes (array)
|
|
if (( ${+znt_list_themes} )); then
|
|
themes=( "${znt_list_themes[@]}" )
|
|
fi
|
|
|
|
# 5. znt_list_instant_select
|
|
NLIST_INSTANT_SELECT=${znt_list_instant_select:-$NLIST_INSTANT_SELECT}
|
|
|