Skip to content
This repository

Little tweak on the robbyrussell.zsh-theme #946

Merged
merged 1 commit into from 7 months ago

3 participants

Rach Belaid Robby Russell Vivien Leroy
Rach Belaid

change the color of arrow when the command line return an error

Green : ok

Red : error

Robby Russell robbyrussell merged commit 1c185f0 into from
Robby Russell

@rach thanks, this is a nice update to my theme. :-) :+1:

Vivien Leroy

Just wanted to say this bugged me for 3 months and now I know why it's doing this.
I thinks it's a really strange behavior…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 19, 2012
Rach Belaid rach change the color of arrow when the command line return an error ff7e064
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  themes/robbyrussell.zsh-theme
3  themes/robbyrussell.zsh-theme
... ... @@ -1,4 +1,5 @@
1   -PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
  1 +local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
  2 +PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
2 3
3 4 ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
4 5 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.