Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
🐛 fix vars
Browse files Browse the repository at this point in the history
  • Loading branch information
blyndusk committed May 16, 2019
1 parent daa9e45 commit bf0cf26
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions sm.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# 2 : username & machine hostname + git prompt
# 3 : username & machine hostname + current working directory + git prompt





local RETURN_CODE="%(?..%F{red}%? - )%F{default}";
local ROOT_COLOR="blue";

Expand All @@ -18,20 +22,23 @@ local SM_USER="%F{${ROOT_COLOR}}%n%F{yellow}@%F{cyan}%m";
local SM_GIT="$(git_prompt_info) $(git_prompt_status)%F{default}";
local SM_DIR="%F{magenta}%~%F{default}";
local SM_CLOCK="${RETURN_CODE}%F{cyan}%D%F{yellow} / %F{blue}%T%F{default}";

local SM_FINAL_PROMPT="";

local SM_PROMPT_TEMPLATE=(
"$SM_PREFIX $SM_USER $SM_GIT
"
"$SM_MIDFIX $SM_DIR
"
"$SM_SUFFIX"
'$SM_PREFIX $SM_USER $(git_prompt_info) $(git_prompt_status)%F{default}
'
'$SM_MIDFIX $SM_DIR
'
'$SM_SUFFIX'
)

for i in "${SM_PROMPT_TEMPLATE[@]}" ; do SM_FINAL_PROMPT+="$i" ; done ;


PROMPT="$SM_FINAL_PROMPT";
RPROMPT="$SM_CLOCK";

ZSH_THEME_GIT_PROMPT_PREFIX="%F{magenta}git:%F{default}";
ZSH_THEME_GIT_PROMPT_SUFFIX="";
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{red}✘%F{default}";
Expand Down

0 comments on commit bf0cf26

Please sign in to comment.