Skip to content

Commit 0232bc4

Browse files
committed
Improved kl helper
1 parent f45de03 commit 0232bc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.zshrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,10 @@ function k8s_log() {
503503
local resource="$1"
504504
local follow
505505

506-
if [[ "$1" == "-f" || "$2" == "-f" ]] ; then
506+
if [[ "$2" == "-f" ]] ; then
507+
follow=true
508+
else if [[ "$1" == "-f" ]] ; then
509+
resource="$2"
507510
follow=true
508511
fi
509512

0 commit comments

Comments
 (0)