You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes are welcome! Please read the [bug reports and shell configuration](#bug-reports-and-shell-configuration) section before submitting a bug report.
5
+
A good deal of the problems experienced with kube-ps1 are due to the vast ways of customizing the shell.
6
+
Please try the prompt with a minimal configuration before submitting a bug report.
2. Source the kube-ps1.sh in your `~/.zshrc` or your `~/.bashrc`
70
64
71
65
#### Zsh
66
+
72
67
```sh
73
68
source /path/to/kube-ps1.sh
74
69
PROMPT='$(kube_ps1)'$PROMPT# or RPROMPT='$(kube_ps1)'
75
70
```
76
71
#### Bash
72
+
77
73
```sh
78
74
source /path/to/kube-ps1.sh
79
75
PS1='[\u@\h \W $(kube_ps1)]\$ '
@@ -135,31 +131,6 @@ If the current-context is not set, kube-ps1 will return the following:
135
131
(<symbol>|N/A:N/A)
136
132
```
137
133
138
-
## Symbols
139
-
140
-
The default symbols are UTF8 and should work with most fonts. Due to differences
141
-
in font and terminal spacing, a `KUBE_PS1_SYMBOL_PADDING` option is available to provide an extra space
142
-
after the symbol.
143
-
144
-
In order to have the OpenShift icon, a patched font that contains the glyph must
145
-
be installed. [Nerd Fonts](https://www.nerdfonts.com/) provides an OpenShift icon.
146
-
Follow the install directions (out of scope for this project) to install a patched
147
-
font.
148
-
149
-
Once installed and the font is made active in a terminal session, test to see if the symbol is available:
150
-
151
-

152
-
153
-
If the symbol is not available, it will display an empty set of brackets or similar:
154
-
```sh
155
-
echo -n "\ue7b7"
156
-
157
-
```
158
-
159
-
Below is a screenshot of the OpenShift symbol using the Inconsolata font from Nerd Fonts:
160
-
161
-

162
-
163
134
## Enabling/Disabling
164
135
165
136
If you want to stop showing Kubernetes status on your prompt string temporarily
@@ -176,6 +147,37 @@ kubeoff : turn off kube-ps1 status for this shell. Takes precedence over
176
147
kubeoff -g : turn off kube-ps1 status globally
177
148
```
178
149
150
+
## Symbol
151
+
152
+
The default symbols are UTF8 and should work with most fonts. If you want to use the Kubernetes and OpenShift
153
+
glyphs, you need to install a patched font that contains the glyph. [Nerd Fonts](https://www.nerdfonts.com/) provides both glyphs. Follow their installation instructions to install the patched font.
0 commit comments