1
0
Fork 0

Merge pull request #382 from miloshadzic/master

miloshadzic theme
pull/4/head
Robby Russell 14 years ago
commit 5c6583bd52

@ -2,14 +2,14 @@ stat -f%m . > /dev/null 2>&1
if [ "$?" = 0 ]; then if [ "$?" = 0 ]; then
stat_cmd=(stat -f%m) stat_cmd=(stat -f%m)
else else
stat_cmd=(stat -L --format=%y) stat_cmd=(stat -L --format=%Y)
fi fi
_ant_does_target_list_need_generating () { _ant_does_target_list_need_generating () {
if [ ! -f .ant_targets ]; then return 0; if [ ! -f .ant_targets ]; then return 0;
else else
accurate=$($stat_cmd -f%m .ant_targets) accurate=$($stat_cmd .ant_targets)
changed=$($stat_cmd -f%m build.xml) changed=$($stat_cmd build.xml)
return $(expr $accurate '>=' $changed) return $(expr $accurate '>=' $changed)
fi fi
} }

@ -0,0 +1,22 @@
local user='%{$fg[magenta]%}%n@%{$fg[magenta]%}%m%{$reset_color%}'
local pwd='%{$fg[blue]%}%~%{$reset_color%}'
local rvm='%{$fg[green]%}$(rvm-prompt i v g)%{$reset_color%}'
local return_code='%(?..%{$fg[red]%}%? ↵%{$reset_color%})'
local git_branch='$(git_prompt_status)%{$reset_color%}$(git_prompt_info)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
PROMPT="${user} ${pwd}$ "
RPROMPT="${return_code} ${git_branch} ${rvm}"
Loading…
Cancel
Save