adding kubernetes stuff
This commit is contained in:
@@ -67,3 +67,4 @@ set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
|
|||||||
|
|
||||||
# add kitty support
|
# add kitty support
|
||||||
# kitty + complete setup fish | source
|
# kitty + complete setup fish | source
|
||||||
|
# set -g fish_user_paths "/usr/local/opt/postgresql@9.5/bin" $fish_user_paths
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ function _rb_prompt
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _kb_context
|
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
|
end
|
||||||
|
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
|
|||||||
3
fish/functions/ks.fish
Normal file
3
fish/functions/ks.fish
Normal 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
|
||||||
Reference in New Issue
Block a user