From 1257e3ca1b809b245fdd080e3a573784b7f692e1 Mon Sep 17 00:00:00 2001 From: CramMK Date: Mon, 3 Feb 2020 16:49:27 +0100 Subject: [PATCH] Add vundle install and mizu icon --- config.yaml | 5 ++++- dotfiles/zsh/marc-pygmalion.zsh-theme | 8 ++++---- dotfiles/zshrc | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config.yaml b/config.yaml index 38dd3af..53e25b6 100644 --- a/config.yaml +++ b/config.yaml @@ -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 diff --git a/dotfiles/zsh/marc-pygmalion.zsh-theme b/dotfiles/zsh/marc-pygmalion.zsh-theme index 2da55c0..7fa2af0 100644 --- a/dotfiles/zsh/marc-pygmalion.zsh-theme +++ b/dotfiles/zsh/marc-pygmalion.zsh-theme @@ -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" } diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 2150dd7..94a7e7f 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -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"