Skip to content

Commit eea4849

Browse files
committed
Move k to a function
1 parent fdf025f commit eea4849

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

config/common/.config/fish/conf.d/abbr.fish

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ alias o open
1616
alias oo "open ."
1717
alias t 'mkdir -p /tmp/scratch; and cd (mktemp --directory --tmpdir=/tmp/scratch (string split "/" $PWD --right --max=1 --fields=2).XXXXX)'
1818
alias tf terraform
19-
alias k kubectl
2019

2120
# abbreviations
2221
abbr -a -g cdd "cd .."
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function k
2+
if test (count $argv) -eq 0
3+
kubectl get pod
4+
else
5+
kubectl $argv
6+
end
7+
end

0 commit comments

Comments
 (0)