From 691b6311f7f5e42dd716722dbac8e57e9aee4551 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 26 Apr 2022 02:38:05 -0700 Subject: [PATCH] added git status display for prompt --- zshrc.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zshrc.txt b/zshrc.txt index 9688cb2d..dafc7966 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -35,8 +35,12 @@ autoload -Uz colors && colors autoload -Uz vcs_info precmd() { vcs_info } -# Format the vcs_info_msg_0_ variable -zstyle ':vcs_info:git:*' formats '%b' +# git info/styling for prompt +zstyle ':vcs_info:*' check-for-changes true +zstyle ':vcs_info:*' unstagedstr '%B%F{green} ✓' +zstyle ':vcs_info:*' stagedstr '%B%F{yellow} +' +zstyle ':vcs_info:git:*' formats '%b%u%c' +zstyle ':vcs_info:git:*' actionformats '%b|%a%u%c' # Set up the prompt (with git branch name) setopt PROMPT_SUBST @@ -89,6 +93,7 @@ alias js="cd ~/Documents/Code/javascript" alias py="cd ~/Documents/Code/python" alias wtuts="cd ~/Documents/Code/web_tutorials" alias btuts="cd ~/Documents/Code/book_tutorials" +alias fonts="fc-list" alias locate="locate -i" alias bat="bat --theme Nord" alias batman="man bat"