Last active
August 29, 2015 14:16
-
-
Save saibayadon/ff93a724856febdfa2f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
local user_host='%{$terminfo[bold]$fg[green]%}%n%{$reset_color%}' | |
local current_dir='%{$terminfo[bold]$fg[cyan]%} %~%{$reset_color%}' | |
local node_ver='%{$fg[red]%}‹$(node -v)›%{$reset_color%}' | |
local git_branch='$(git_prompt_info)%{$reset_color%}' | |
local hg_branch='%{$terminfo[bold]$fg[cyan]%}$(hg_prompt_info)%{$reset_color%}' | |
PROMPT="%{$fg[red]%}❯%{$fg[yellow]%}❯%{$fg[green]%}❯%{$reset_color%}${current_dir} ${node_ver} ${hg_branch}${git_branch}" | |
RPS1="${return_code}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment