Skip to content

Commit

Permalink
Update marks for PS1.
Browse files Browse the repository at this point in the history
  • Loading branch information
keeto committed Mar 25, 2016
1 parent cb51e9b commit bc865db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/main.zsh-theme
@@ -1,12 +1,12 @@
__show_term_marks(){
mark=" "
mark=""
#screen)
if [[ $TERM = 'screen' ]] then
mark=" screen >$mark"
mark="%{$BG[178]%} screen $mark"
fi
#ssh)
if [[ -n $SSH_CLIENT || -n $REMOTEHOST ]] then
mark=" ssh >$mark"
mark="%{$BG[178]%} ssh $mark"
fi
echo $mark
}
Expand All @@ -18,7 +18,7 @@ __git_ps1_prompt(){
}

export LSCOLORS="exHecxdxbxegedabaggxgx"
PROMPT='%{$reset_color%}%{$BG[038]%}%{$FG[015]%}$(__show_term_marks)$(date +%H:%M) %{$BG[243]%}%{$FG[015]%} %n@%m %{$BG[240]%}%{$FG[015]%} %~ %{$BG[237]%}$(__git_ps1_prompt)%{$reset_color%}
PROMPT='%{$reset_color%}%{$FG[015]%}$(__show_term_marks)%{$BG[038]%} $(date +%H:%M) %{$BG[243]%}%{$FG[015]%} %n@%m %{$BG[240]%}%{$FG[015]%} %~ %{$BG[237]%}$(__git_ps1_prompt)%{$reset_color%}
%{$FG[038]%}>>%{$reset_color%} '

precmd() { print "" }
Expand Down

0 comments on commit bc865db

Please sign in to comment.