Skip to content

Commit 0452643

Browse files
committed
New function to change context and ns at once
1 parent 12d7b71 commit 0452643

File tree

1 file changed

+8
-0
lines changed
  • config/common/.config/fish/functions

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function kxs
2+
if test (count $argv) -ne 2
3+
echo "Usage: kx <context> <ns>"
4+
return 1
5+
end
6+
kubectl config use-context $argv[1]
7+
kubectl config set-context --current --namespace=$argv[2]
8+
end

0 commit comments

Comments
 (0)