7478f1fd22a18c1b857655c4467ca79ba44e9dfa

Author
ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

chore(kube-ps1): update to 7d575c6d (#13750)

Co-authored-by: ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com>

Diff

 1diff --git a/.github/dependencies.yml b/.github/dependencies.yml
 2index b59cf9ed02fee5e049188a70b049756db27ec3ca..254196920dbaa86999136c5069bd76ef6c10349e 100644
 3--- a/.github/dependencies.yml
 4+++ b/.github/dependencies.yml
 5@@ -30,7 +30,7 @@ dependencies:
 6   plugins/kube-ps1:
 7     repo: jonmosco/kube-ps1
 8     branch: master
 9-    version: e19c9ee867c5655814c384a6bf543e330e6ef1b7
10+    version: 7d575c6d53f60130159a3db28e33d2967201cd64
11     precopy: |
12       set -e
13       find . ! -name kube-ps1.sh ! -name LICENSE ! -name README.md -delete
14diff --git a/plugins/kube-ps1/README.md b/plugins/kube-ps1/README.md
15index ef6d781ad07e478cf6e9bd2a9257f4e2b1d176ef..5ab0593544c238072b0b0f75f3d78c8de274a68f 100644
16--- a/plugins/kube-ps1/README.md
17+++ b/plugins/kube-ps1/README.md
18@@ -1,10 +1,9 @@
19-# kube-ps1: Kubernetes prompt for bash and zsh
20+# kube-ps1: Kubernetes prompt for bash, zsh, and fish
21 
22 ![GitHub Release](https://img.shields.io/github/v/release/jonmosco/kube-ps1)
23 [![CI](https://github.com/jonmosco/kube-ps1/actions/workflows/ci.yml/badge.svg)](https://github.com/jonmosco/kube-ps1/actions/workflows/ci.yml)
24 
25-A script that lets you add the current Kubernetes context and namespace
26-configured on `kubectl` to your Bash/Zsh prompt strings (i.e. the `$PS1`).
27+A script that lets you add the current Kubernetes context and namespace configured on `kubectl` to your Bash, Zsh, or Fish prompt.
28 
29 Inspired by several tools used to simplify usage of `kubectl`.
30 
31@@ -77,6 +76,21 @@ source /path/to/kube-ps1.sh
32 PS1='[\u@\h \W $(kube_ps1)]\$ '
33 ```
34 
35+#### Fish
36+
37+Add this to `~/.config/fish/config.fish`:
38+
39+```fish
40+source /path/to/kube-ps1.fish
41+
42+function fish_prompt
43+    echo -n (kube_ps1) ' '
44+    # your existing prompt here
45+end
46+```
47+
48+> Note: Fish users should source `kube-ps1.fish` instead of `kube-ps1.sh`.
49+
50 ## Requirements
51 
52 The default prompt assumes you have the `kubectl` command line utility installed.
53@@ -184,8 +198,7 @@ If the font is not properly installed, and the glyph is not available, it will d
54 
55 ## Customization
56 
57-The default settings can be overridden in `~/.bashrc` or `~/.zshrc` by setting
58-the following variables:
59+The default settings can be overridden in `~/.bashrc`, `~/.zshrc`, or `~/.config/fish/config.fish` by setting the following variables:
60 
61 | Variable | Default | Meaning |
62 | :------- | :-----: | ------- |