Add vundle install and mizu icon

This commit is contained in:
CramMK
2020-02-03 16:49:27 +01:00
parent 1f9a8059f8
commit 1257e3ca1b
3 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
actions:
pre:
vundle-install: test -e ~/.vim/bundle/Vundle.vim || (mkdir -p ~/.vim/bundle; git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim )
vundle-refresh: vim +VundleClean! +VundleInstall +VundleInstall! +qall
cache-font: fc-cache -f -v
reload-xresources: xrdb ~/.Xresources
vundle-refresh: vim +VundleClean! +VundleInstall +VundleInstall! +qall
config:
backup: true
create: true
@@ -14,6 +16,7 @@ dotfiles:
src: vimrc
dst: ~/.vimrc
actions:
- vundle-install
- vundle-refresh
f_gitconfig:
src: gitconfig

View File

@@ -7,7 +7,7 @@ prompt_setup_pygmalion(){
ZSH_THEME_GIT_PROMPT_CLEAN=""
base_prompt='%{$fg[green]%}%n%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[yellow]%}%m%{$reset_color%}%{$fg[red]%}:%{$reset_color%}%{$fg[cyan]%}%1~%{$reset_color%}'
post_prompt=' '
post_prompt='%{$fg[green]%} 水 %{$reset_color%}'
base_prompt_nocolor=$(echo "$base_prompt" | perl -pe "s/%\{[^}]+\}//g")
post_prompt_nocolor=$(echo "$post_prompt" | perl -pe "s/%\{[^}]+\}//g")
@@ -23,16 +23,16 @@ prompt_pygmalion_precmd(){
local prompt_length=${#exp_nocolor}
local nl=""
post_prompt=' '
post_prompt='%{$fg[green]%} 水 %{$reset_color%}'
if [ ${#gitinfo} -ne 0 ] ; then
gitinfo=${gitinfo[1,-2]}
fi
if [[ $prompt_length -gt 40 ]]; then
if [[ $prompt_length -gt 50 ]]; then
nl=$'\n%{\r%}';
post_prompt='>';
post_prompt='%{$fg[green]%}~> %{$reset_color%}';
fi
PROMPT="$base_prompt$gitinfo$nl$post_prompt"
}

View File

@@ -18,6 +18,7 @@ export EDITOR="vim"
# Some aliases
alias zshrc="vim ~/.zshrc"
alias szsh="source ~/.zshrc"
alias vimrc="vim ~/.vimrc"
alias dotdrop="~/dotfiles/dotdrop.sh" --cfg="~/dotfiles/config.yaml"