chezmoi init

This commit is contained in:
Cy Pokhrel 2024-10-22 11:11:45 -04:00
commit 530d6d7195
No known key found for this signature in database
GPG key ID: 1200FBE36C2ADE2E
1176 changed files with 111325 additions and 0 deletions

View file

@ -0,0 +1,33 @@
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=reverse
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_aliases_active_text
active_text=${znt_aliases_active_text:-$active_text}
# 2. znt_aliases_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_aliases_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 3. znt_aliases_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_aliases_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 4. znt_aliases_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_aliases_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 5. znt_aliases_keywords (array)
if (( ${+znt_aliases_keywords} )); then
keywords=( "${znt_aliases_keywords[@]}" )
fi

View file

@ -0,0 +1,68 @@
# Hotlist
# Can use e.g. $ZSH_VERSION, e.g. /usr/share/zsh/$ZSH_VERSION/functions
local -a hotlist
hotlist=(
~/.config/znt
/usr/share/zsh/site-functions
/usr/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/share/zsh
/usr/local/bin
/usr/lib
)
# Suppress adding (to directory stack) directories visited by n-cd
# Value 0 is the default (directories will be added to dirstack)
local NCD_DONT_PUSHD=0
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=reverse
# Colorize last segments of the paths
# (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
local NLIST_COLORING_PATTERN="[a-zA-Z0-9 ._-]##/#(#e)"
local NLIST_COLORING_COLOR=$'\x1b[00;33m'
# Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
local -a keywords
keywords=( "zsh" "local" "git" )
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_cd_hotlist (array)
if (( ${+znt_cd_hotlist} )); then
hotlist=( "${znt_cd_hotlist[@]}" )
fi
# 2. znt_cd_dont_pushd
NCD_DONT_PUSHD=${znt_cd_dont_pushd:-$NCD_DONT_PUSHD}
# 3. znt_cd_active_text
active_text=${znt_cd_active_text:-$active_text}
# 4. znt_cd_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_cd_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 5. znt_cd_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_cd_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 6. znt_cd_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_cd_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 7. znt_cd_keywords (array)
if (( ${+znt_cd_keywords} )); then
keywords=( "${znt_cd_keywords[@]}" )
fi

View file

@ -0,0 +1,38 @@
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=reverse
# (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
local NLIST_COLORING_PATTERN="[a-zA-Z0-9_]##"
local NLIST_COLORING_MATCH_MULTIPLE=0
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_env_active_text
active_text=${znt_env_active_text:-$active_text}
# 2. znt_env_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_env_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 3. znt_env_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_env_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 4. znt_env_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_env_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 5. znt_env_keywords (array)
if (( ${+znt_env_keywords} )); then
keywords=( "${znt_env_keywords[@]}" )
fi

View file

@ -0,0 +1,41 @@
# Which editor to use, zed or vared
# vared is the default
local feditor="zed"
# local feditor="vared"
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=reverse
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_functions_feditor
feditor=${znt_functions_feditor:-$feditor}
# 2. znt_functions_active_text
active_text=${znt_functions_active_text:-$active_text}
# 3. znt_functions_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_functions_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 4. znt_functions_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_functions_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 5. znt_functions_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_functions_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 6. znt_functions_keywords (array)
if (( ${+znt_functions_keywords} )); then
keywords=( "${znt_functions_keywords[@]}" )
fi

View file

@ -0,0 +1,43 @@
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=underline
# Highlight a few keywords
local NLIST_COLORING_PATTERN="(while|for |sudo|make|(#s)git|vim(#e)|vim |emacs(#e)|emacs )"
local NLIST_COLORING_COLOR=$'\x1b[00;33m'
local NLIST_COLORING_MATCH_MULTIPLE=1
# Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
local -a keywords
keywords=( "git" "vim" "mplayer" )
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_history_active_text
active_text=${znt_history_active_text:-$active_text}
# 2. znt_history_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_history_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 3. znt_history_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_history_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 4. znt_history_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_history_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 5. znt_history_keywords (array)
if (( ${+znt_history_keywords} )); then
keywords=( "${znt_history_keywords[@]}" )
fi

View file

@ -0,0 +1,46 @@
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=reverse
# Colorize first number column and last path segment
# This doesn't cover scripts named "[0-9]## *", which should be very rare
# (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
# | is alternative, but only in ()
local NLIST_COLORING_PATTERN="((#s) #[0-9]## |[[][^]]#](#e)|[^ 0-9/?\\\\][^/\\\\]#(#e))"
local NLIST_COLORING_COLOR=$'\x1b[00;33m'
local NLIST_COLORING_MATCH_MULTIPLE=1
# Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
local -a keywords
keywords=( "vim" "git" "git commit" "firefox" "mplayer" )
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_kill_active_text
active_text=${znt_kill_active_text:-$active_text}
# 2. znt_kill_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_kill_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 3. znt_kill_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_kill_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 4. znt_kill_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_kill_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 5. znt_kill_keywords (array)
if (( ${+znt_kill_keywords} )); then
keywords=( "${znt_kill_keywords[@]}" )
fi

View file

@ -0,0 +1,55 @@
# 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}

View file

@ -0,0 +1,34 @@
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=reverse
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_options_active_text
active_text=${znt_options_active_text:-$active_text}
# 2. znt_options_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_options_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 3. znt_options_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_options_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 4. znt_options_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_options_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 5. znt_options_keywords (array)
if (( ${+znt_options_keywords} )); then
keywords=( "${znt_options_keywords[@]}" )
fi

View file

@ -0,0 +1,34 @@
# How should be current element of the list drawn. Possible values: reverse,
# underline.
# On Linux virtual terminal this will be enforced to reverse (because of poor
# underline support on that terminal). The same for screen/tmux.
local active_text=reverse
#
# Zshrc integration. All below variables can
# be set in zshrc and will have precedence
# over config files
#
# 1. znt_panelize_active_text
active_text=${znt_panelize_active_text:-$active_text}
# 2. znt_panelize_nlist_coloring_pattern
NLIST_COLORING_PATTERN=${znt_panelize_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
# 3. znt_panelize_nlist_coloring_color
NLIST_COLORING_COLOR=${znt_panelize_nlist_coloring_color:-$NLIST_COLORING_COLOR}
# 4. znt_panelize_nlist_coloring_match_multiple
NLIST_COLORING_MATCH_MULTIPLE=${znt_panelize_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
# 5. znt_panelize_keywords (array)
if (( ${+znt_panelize_keywords} )); then
keywords=( "${znt_panelize_keywords[@]}" )
fi