ps1: fix syntax error

This commit is contained in:
Motiejus Jakštys 2024-06-12 08:40:00 +03:00
parent 9be7416959
commit 7fa34fea68
1 changed files with 2 additions and 1 deletions

View File

@ -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);')
'';