fish: get rid of starship, bring custom prompt back
This commit is contained in:
parent
83bcd5952f
commit
f323956d2b
10 changed files with 97 additions and 2 deletions
8
dot_config/fish/functions/fish_prompt.kube.fish
Normal file
8
dot_config/fish/functions/fish_prompt.kube.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
function fish_prompt.kube
|
||||
if ! test -r "$kube_config"
|
||||
return
|
||||
end
|
||||
fish_prompt.add "$kube_symbol"
|
||||
set -l kube_context (awk -F- '($1 == "current") {print $3}' "$kube_config")
|
||||
fish_prompt.add "$kube_context" green
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue