Use * to indicate current context & current namespace

This commit is contained in:
Prabhu Jayakumar 2018-05-28 23:03:03 +05:30
parent e9fbafc923
commit dad48e5397
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ list_contexts() {
for c in $(get_contexts); do for c in $(get_contexts); do
if [[ -t 1 && "${c}" = "${cur}" ]]; then if [[ -t 1 && "${c}" = "${cur}" ]]; then
echo "${darkbg}${yellow}${c}${normal}" echo "* ${darkbg}${yellow}${c}${normal}"
else else
echo "${c}" echo "${c}"
fi fi

2
kubens
View File

@ -114,7 +114,7 @@ list_namespaces() {
ns_list=$(get_namespaces) ns_list=$(get_namespaces)
for c in $ns_list; do for c in $ns_list; do
if [[ -t 1 && "${c}" = "${cur}" ]]; then if [[ -t 1 && "${c}" = "${cur}" ]]; then
echo "${darkbg}${yellow}${c}${normal}" echo "* ${darkbg}${yellow}${c}${normal}"
else else
echo "${c}" echo "${c}"
fi fi