Skip to content

Commit

Permalink
added better example for prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramilito committed Nov 8, 2023
1 parent 095c497 commit 2af59ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,12 @@ prompt_context() {
KUBE_CTX=$(kubesess -c context)
KUBE_NS=$(kubesess -c namespace)
if [[ $KUBE_CTX == *"prod"* ]]; then
if [[ $KUBE_CTX == *"dev"* ]]; then
echo "❗%{$fg[yellow]%}|$KUBE_CTX%{$reset_color%}:%F{6}$KUBE_NS%f"
elif [[ $KUBE_CTX == *"prod"* ]]; then
echo "⛔%{$fg[red]%}|$KUBE_CTX%{$reset_color%}:%F{6}$KUBE_NS%f"
elif [[ $KUBE_CTX == *"staging"* ]]; then
echo "⛔%{$fg[red]%}|$KUBE_CTX%{$reset_color%}:%F{6}$KUBE_NS%f"
else
echo "✅️%{$fg[green]%}|$KUBE_CTX%{$reset_color%}:%F{6}$KUBE_NS%f"
fi
Expand Down

0 comments on commit 2af59ce

Please sign in to comment.