mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-06-22 13:41:11 +00:00
Revert "Use * to indicate current context & current namespace"
This reverts commit dad48e5397
.
This commit is contained in:
parent
dad48e5397
commit
c23c2a9e29
2
kubectx
2
kubectx
@ -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
2
kubens
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user