From 5a6a95a564ee563b03cfe2310e73a9560bdfca8e Mon Sep 17 00:00:00 2001 From: venomade Date: Thu, 27 Feb 2025 20:46:02 +0000 Subject: Update zshrc Add a bunch of extra features: Global variables and aliases Completion Syntax Highlighting --- .zshrc | 34 +++++++++++++++++++++++++++++----- 1 file 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 -- cgit 1.4.1-2-gfad0