7c768543df965ce5102b34e83fab78cf5e73b626

Author
Cristian Măgherușan-Stanciu <cristi.magherusan@gmail.com>
Committer
Cristian Măgherușan-Stanciu <cristi.magherusan@gmail.com>
Date

Message

Added a small mod of the tjkirch theme

- single-line prompt
- removed the extra line after each command output

Diff

 1diff --git a/themes/tjkirch_mod.zsh-theme b/themes/tjkirch_mod.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..1b206a7e1f85e4a0b0d6fa208914a8f2c62dda3c
 4--- /dev/null
 5+++ b/themes/tjkirch_mod.zsh-theme
 6@@ -0,0 +1,13 @@
 7+ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
 8+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
 9+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
10+ZSH_THEME_GIT_PROMPT_CLEAN=""
11+
12+function prompt_char {
13+	if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
14+}
15+
16+PROMPT='%(?,,%{$fg[red]%}FAIL: $?%{$reset_color%}
17+)%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info) %_$(prompt_char) '
18+
19+RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'