mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-17 07:56:11 +01:00
funny fish
This commit is contained in:
9
.config/fish/functions/_pure_k8s_namespace.fish
Normal file
9
.config/fish/functions/_pure_k8s_namespace.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
function _pure_k8s_namespace
|
||||
set namespace (kubectl config view --minify --output 'jsonpath={..namespace}' 2>/dev/null)
|
||||
|
||||
if test -z "$namespace"
|
||||
set namespace default
|
||||
end
|
||||
|
||||
echo $namespace
|
||||
end
|
||||
Reference in New Issue
Block a user