ps1: fix syntax error
This commit is contained in:
parent
9be7416959
commit
7fa34fea68
@ -80,7 +80,8 @@
|
||||
bash.initExtra = ''
|
||||
mj_ps1_extra() {
|
||||
if [[ $PWD =~ $HOME/dev ]]; then
|
||||
kubectl config view --minify -o jsonpath={.current-context}:{..namespace}
|
||||
kubectl config view --minify -o jsonpath={.current-context}:{..namespace}
|
||||
fi
|
||||
}
|
||||
export PS1=$(echo "$PS1" | sed 's;\\n;$(mj_ps1_extra);')
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user