adding kubernetes stuff

This commit is contained in:
2019-09-12 23:25:54 +02:00
parent 359651001b
commit 5b8c89bfce
3 changed files with 8 additions and 1 deletions

View File

@@ -67,3 +67,4 @@ set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
# add kitty support
# kitty + complete setup fish | source
# set -g fish_user_paths "/usr/local/opt/postgresql@9.5/bin" $fish_user_paths

View File

@@ -11,7 +11,10 @@ function _rb_prompt
end
function _kb_context
echo (kubectl config current-context | awk '{print $1}')
kubectl config current-context 2> /dev/null
if [ (test $status -eq 0) ]
echo (kubectl config current-context | awk '{print $1}')
end
end
function fish_prompt

3
fish/functions/ks.fish Normal file
View File

@@ -0,0 +1,3 @@
function ks --description 'show cluster status for dev, int or prod'
az aks show --resource-group $argv --name aks-$argv --output table
end