refactor: added support for zsh

This commit is contained in:
rkiel
2020-11-21 10:20:23 -05:00
parent 5b9d2b0711
commit 7e9338128d
5 changed files with 111 additions and 33 deletions

15
dotfiles/zprofile Normal file
View File

@@ -0,0 +1,15 @@
export EDITOR=vim
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%b'
# generated by ./bin/generate-bash-prompt
export PS1='[%B%F{magenta}%n@%m%f%b %B%F{blue}%1d%f%b %B%F{green}'\$vcs_info_msg_0_'%f%b]$ '
LOCALS=~/.zprofile_locals
if [ -f $LOCALS ]; then
source $LOCALS
fi