Update zshrc

Add a bunch of extra features:
Global variables and aliases
Completion
Syntax Highlighting
This commit is contained in:
venomade committed 2025-02-27 20:46:02 +00:00
1 parent 5d9bdf29ed
commit 5a6a95a564
1 file changed
+29 -5
+29 -5
View File
@@ -1,5 +1,32 @@
# Venomade's zshrc
# source global variables and aliases
[ -f "$HOME/.config/shell/alias" ] && source "$HOME/.config/shell/alias"
[ -f "$HOME/.config/shell/vars" ] && source "$HOME/.config/shell/vars"
# load modules
zmodload zsh/complist
autoload -U compinit && compinit
autoload -U colors && colors autoload -U colors && colors
# completion
zstyle ':completion:*' menu select
zstyle ':completion:*' special-dirs true
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} ma=0\;33
# options
setopt append_history inc_append_history share_history
setopt auto_menu menu_complete
setopt auto_param_slash
setopt no_case_glob no_case_match
setopt globdots
setopt extended_glob
# history
HISTCONTROL=ignoreboth
# prompt
USER_COLOR="%F{magenta}" USER_COLOR="%F{magenta}"
VENV_COLOR="%F{yellow}" VENV_COLOR="%F{yellow}"
DIR_COLOR="%F{green}" DIR_COLOR="%F{green}"
@@ -49,8 +76,5 @@ ${PROMPT_SYMBOL_COLOR}λ${RESET_COLOR} "
autoload -Uz add-zsh-hook autoload -Uz add-zsh-hook
add-zsh-hook precmd set_prompt add-zsh-hook precmd set_prompt
export PATH="$PATH:$HOME/.local/bin" # plugins
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
alias gvc="ssh git@git.venomade.com"
alias rgf='rg --files | rg'