ps1: fix syntax error

This commit is contained in:
Motiejus Jakštys 2024-06-12 08:40:00 +03:00
parent 9be7416959
commit 7fa34fea68

View File

@ -81,6 +81,7 @@
mj_ps1_extra() { mj_ps1_extra() {
if [[ $PWD =~ $HOME/dev ]]; then 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);') export PS1=$(echo "$PS1" | sed 's;\\n;$(mj_ps1_extra);')
''; '';