diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-12 14:31:04 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-12 14:31:04 +0200 |
commit | b72fcdbe08c7f93fe3115694e79e1bc4c87af27a (patch) | |
tree | 2ec8af105b031d8e9d016afa33c28bd6c5105cb5 /zsh | |
parent | b198ca9002142918f3206d4d8b82aa97536bcece (diff) | |
download | dotfiles-b72fcdbe08c7f93fe3115694e79e1bc4c87af27a.tar.xz |
zsh: promt: remove powerline symbols
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/prompt.zsh | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index e5c5c97..0ae4e0e 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -3,10 +3,10 @@ function red function redbg printf "%s%s%s" "%K{red}" "$@" "%k" function redbg_p - printf "%s%s%s" "%K{red}" "$@" "%k$(red $RSEGF$RSEG)" + printf "%s%s%s" "%K{red}" "$@" "%k" function bluebg_p - printf "%s%s%s" "%K{blue}" "$@" "%k%F{blue}$RSEGF$RSEG%f" + printf "%s%s%s" "%K{blue}" "$@" "%k%F{blue}%f" function black printf "%s%s%s" "%F{black}" "$@" "%f" @@ -18,14 +18,10 @@ function white function whitebg printf "%s%s%s" "%K{white}" "$@" "%k" -function user_color { - (( UID )) && print -n black || print -n red -} - -RSEGF="" -RSEG="" -LSEGF="" -LSEG="" -BRNCH="" -PROMPT='$($(user_color)bg " $(white %m) ")$(whitebg "$($(user_color) "$RSEGF %~") ")$RSEGF +if [[ $UID -ne 0 ]]; then + PROMPT='$(blackbg " $(white %m) ")$(whitebg "$(black " %~") ") +%(?.$(bluebg_p "%B ^_^ %b").$(redbg_p "%B o_O %b")) ' +else + PROMPT='$(redbg " $(white %m) ")$(whitebg "$(red " %~") ") %(?.$(bluebg_p "%B ^_^ %b").$(redbg_p "%B o_O %b")) ' +fi |