Diff
1diff --git a/README.md b/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..bc029be651f87d85fd5d055cac0e54eb89d555d4
4--- /dev/null
5+++ b/README.md
6@@ -0,0 +1,18 @@
7+# Boban ZSH theme
8+
9+A Powerline ZSH font, based on [Agnoster](https://github.com/agnoster/agnoster-zsh-theme)
10+
11+
12+
13+## Installation
14+
15+If you use [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh/), you can just clone this repo into the `custom/themes`
16+directory in your oh-my-zsh installation and set `ZSH_THEME="boban/boban"` in your zshrc before loading oh-my-zsh.
17+
18+You also need to have a [Nerdfont](https://www.nerdfonts.com/) to have all the symbols show up properly.
19+
20+## Configuration
21+
22+You can set the `DEFAULT_USER` env var to your username in your zshrc before loading this theme to stop showing the
23+first prompt segment when you are on your main user. It will always show when you are ssh-ed into the host where the
24+shell is running on, to indicate that you are not on your local machine.
25diff --git a/boban.zsh-theme b/boban.zsh-theme
26index 03bd0c7418b8db704d59448a49bab1092c5d3d3a..56bf696ddc2dda3e41390f93eaab4bd8577925eb 100644
27--- a/boban.zsh-theme
28+++ b/boban.zsh-theme
29@@ -154,19 +154,17 @@ prompt_kubectl() {
30 }
31
32 # Status:
33-# - was there an error
34-# - am I root
35+# - was there an error?
36+# - am I root?
37 # - are there background jobs?
38 prompt_status() {
39 local symbols
40 symbols=()
41- #[[ $RETVAL -ne 0 ]] && symbols+="%{$fg_bold[red]%}$RETVAL%{%b%}"
42 [ $RETVAL -ne 0 ] && symbols+="%{%F{red}%}$RETVAL"
43 [ $UID -eq 0 ] && symbols+="%{%F{yellow}%}⚡"
44 [ $(jobs -l | wc -l) -gt 0 ] && symbols+="%{%F{cyan}%}⚙"
45
46 [ -n "$symbols" ] && prompt_segment background default "$symbols"
47- #[[ -n "$symbols" ]] && prompt_segment "$symbols"
48 }
49
50 prompt_time() {
51@@ -175,8 +173,6 @@ prompt_time() {
52
53 ## Main prompt
54 build_prompt() {
55- #RETVAL=$?
56- #prompt_status
57 prompt_context
58 prompt_dir
59 prompt_virtualenv
60diff --git a/showcase.png b/showcase.png
61new file mode 100644
62index 0000000000000000000000000000000000000000..122b0acb010068122e78b134778673c85b66e11f
63Binary files /dev/null and b/showcase.png differ