switch from using my own fork to using $ZSH_CUSTOM

This commit is contained in:
2012-05-07 16:21:28 -04:00
parent 104d97a9bd
commit cc75852687
6 changed files with 36 additions and 4 deletions

View File

@ -0,0 +1,6 @@
#compdef drush
#autoload
local -a drush_commands
drush_commands=($(drush --early=includes/complete.inc $words[*] ))
_describe -t commands 'drush commands' drush_commands

1
zsh/custom/walkah.zsh Normal file
View File

@ -0,0 +1 @@
# oh-my-zsh complains without a .zsh file in here

View File

@ -0,0 +1,15 @@
# walkah ZSH Theme
if [ -z $SSH_CONNECTION ]; then HCOLOR="green"; else HCOLOR="blue"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
PROMPT='%{$fg[$HCOLOR]%}%m%{$reset_color%}:%c \
$(git_prompt_info)%{$fg[red]%}%(!.#.»)%{$reset_color%} '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
RPS1='${return_code}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✗%{$reset_color%}"