1
|
1
|
new file mode 100644
|
...
|
...
|
@@ -0,0 +1,14 @@
|
|
0
|
+local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
1
|
+local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
|
|
2
|
+local current_dir='%{$terminfo[bold]$fg[blue]%}%~%{$reset_color%}'
|
|
3
|
+local rvm_ruby='%{$fg[red]%}$(rvm_prompt_info)%{$reset_color%}'
|
|
4
|
+local git_branch='%{$fg[blue]%}$(git_prompt_info)%{$reset_color%}'
|
|
5
|
+
|
|
6
|
+PROMPT="${user_host}:${current_dir} ${rvm_ruby}
|
|
7
|
+${git_branch} %B$%b "
|
|
8
|
+RPS1="${return_code}"
|
|
9
|
+
|
|
10
|
+ZSH_THEME_GIT_PROMPT_PREFIX=""
|
|
11
|
+ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
12
|
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
|
|
13
|
+ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
|