Add vundle install and mizu icon
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
actions:
|
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
|
cache-font: fc-cache -f -v
|
||||||
reload-xresources: xrdb ~/.Xresources
|
reload-xresources: xrdb ~/.Xresources
|
||||||
vundle-refresh: vim +VundleClean! +VundleInstall +VundleInstall! +qall
|
|
||||||
config:
|
config:
|
||||||
backup: true
|
backup: true
|
||||||
create: true
|
create: true
|
||||||
@@ -14,6 +16,7 @@ dotfiles:
|
|||||||
src: vimrc
|
src: vimrc
|
||||||
dst: ~/.vimrc
|
dst: ~/.vimrc
|
||||||
actions:
|
actions:
|
||||||
|
- vundle-install
|
||||||
- vundle-refresh
|
- vundle-refresh
|
||||||
f_gitconfig:
|
f_gitconfig:
|
||||||
src: gitconfig
|
src: gitconfig
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ prompt_setup_pygmalion(){
|
|||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
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%}'
|
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")
|
base_prompt_nocolor=$(echo "$base_prompt" | perl -pe "s/%\{[^}]+\}//g")
|
||||||
post_prompt_nocolor=$(echo "$post_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 prompt_length=${#exp_nocolor}
|
||||||
|
|
||||||
local nl=""
|
local nl=""
|
||||||
post_prompt=' '
|
post_prompt='%{$fg[green]%} 水 %{$reset_color%}'
|
||||||
|
|
||||||
|
|
||||||
if [ ${#gitinfo} -ne 0 ] ; then
|
if [ ${#gitinfo} -ne 0 ] ; then
|
||||||
gitinfo=${gitinfo[1,-2]}
|
gitinfo=${gitinfo[1,-2]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $prompt_length -gt 40 ]]; then
|
if [[ $prompt_length -gt 50 ]]; then
|
||||||
nl=$'\n%{\r%}';
|
nl=$'\n%{\r%}';
|
||||||
post_prompt='>';
|
post_prompt='%{$fg[green]%}~> %{$reset_color%}';
|
||||||
fi
|
fi
|
||||||
PROMPT="$base_prompt$gitinfo$nl$post_prompt"
|
PROMPT="$base_prompt$gitinfo$nl$post_prompt"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export EDITOR="vim"
|
|||||||
# Some aliases
|
# Some aliases
|
||||||
alias zshrc="vim ~/.zshrc"
|
alias zshrc="vim ~/.zshrc"
|
||||||
alias szsh="source ~/.zshrc"
|
alias szsh="source ~/.zshrc"
|
||||||
|
|
||||||
alias vimrc="vim ~/.vimrc"
|
alias vimrc="vim ~/.vimrc"
|
||||||
|
|
||||||
alias dotdrop="~/dotfiles/dotdrop.sh" --cfg="~/dotfiles/config.yaml"
|
alias dotdrop="~/dotfiles/dotdrop.sh" --cfg="~/dotfiles/config.yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user