Last active
April 14, 2017 15:18
-
-
Save lislis/0be6da335835de6af7bae92e70b7901f to your computer and use it in GitHub Desktop.
zsh theme
This file contains hidden or 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
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
local user='%{$fg[blue]%}%n%{$reset_color%}' | |
local host='@$fg[magenta]%}%m%{$reset_color%}:%{$reset_color%}' | |
local current_dir='%{$fg[yellow]%}%~%{$reset_color%}' | |
local git_branch='$(git_prompt_info)%{$reset_color%}' | |
PROMPT="╭─${user}${host}${current_dir} ${git_branch} | |
╰─%B$%b " | |
RPS1="${return_code}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}‹" | |
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