diff options
author | venomade <venomade@venomade.com> | 2025-02-27 20:46:02 +0000 |
---|---|---|
committer | venomade <venomade@venomade.com> | 2025-02-27 20:46:02 +0000 |
commit | 5a6a95a564ee563b03cfe2310e73a9560bdfca8e (patch) | |
tree | 861d6ea4076eb4578cf8cf2cb40b1a51f47471e7 | |
parent | 5d9bdf29ed503d78b4dcddc40cae59dd874725f1 (diff) |
Update zshrc
Add a bunch of extra features: Global variables and aliases Completion Syntax Highlighting
-rw-r--r-- | .zshrc | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc index c724133..32221d7 100644 --- a/.zshrc +++ b/.zshrc @@ -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 +# 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}" VENV_COLOR="%F{yellow}" DIR_COLOR="%F{green}" @@ -49,8 +76,5 @@ ${PROMPT_SYMBOL_COLOR}λ${RESET_COLOR} " autoload -Uz add-zsh-hook add-zsh-hook precmd set_prompt -export PATH="$PATH:$HOME/.local/bin" - -alias gvc="ssh git@git.venomade.com" - -alias rgf='rg --files | rg' +# plugins +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |