summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2023-05-07 09:18:59 +0200
committeryuzu-eva <stevenhu@web.de>2023-05-07 09:18:59 +0200
commitb85d2ad65904ae00410e1b7e019be32c44c8e51e (patch)
tree315fddca1f4092e8865e5117d65808c96ae6e6a0 /.config/zsh
parent14d35abebfe5cd4b234a1f5c0cf432a85851e24f (diff)
update
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index d27b9ac..e1884a3 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -4,7 +4,10 @@ stty stop undef
setopt no_nomatch
autoload -U compinit
+autoload -Uz vcs_info
+precmd() { vcs_info }
zstyle ':completion:*' menu select
+zstyle ':vcs_info:git:*' formats ' (on %b)'
zmodload zsh/complist
compinit
_comp_options+=(globdots)
@@ -17,7 +20,7 @@ bindkey -e
# fix del key just inserting a tilde
bindkey "^[[3~" delete-char
-PROMPT='%B%{$fg[red]%}[%{$fg[magenta]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[yellow]%}%~%{$fg[red]%}]%b '
+PROMPT='%B%{$fg[red]%}[%{$fg[magenta]%}%n%{$fg[green]%}@%{$fg[blue]%}%M%{$fg[white]%}${vcs_info_msg_0_}:%{$fg[yellow]%}%~]%{$reset_color%}%b '
setopt extendedGlob
@@ -74,3 +77,5 @@ if [ -f $XDG_DATA_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighti
. $XDG_DATA_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
+
+alias luamake=/home/cafebabe/.local/src/lua-language-server/3rd/luamake/luamake