Skip to content

Commit

Permalink
Show how to use GNU watch
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  • Loading branch information
ahmetb committed Apr 29, 2020
1 parent 30da2f5 commit d4c5c6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ and save it in your $HOME directory, then edit your .bashrc/.zshrc file with:
[ -f ~/.kubectl_aliases ] && source ~/.kubectl_aliases
```

> **Recommendation:** If you want to use GNU `watch` command instead of
> `kubectl [...] --watch`, run it like this:
>
> [ -f ~/.kubectl_aliases ] && source \
> <(cat ~/.kubectl_aliases | sed -r 's/(kubectl.*) --watch/watch\1/g')
**Print the full command before running it:** Add this to your `.bashrc` or
`.zshrc` file:

Expand Down

0 comments on commit d4c5c6a

Please sign in to comment.