Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Thearas/zsh-watch
Command watch for zsh that supports alias and completion.
https://github.com/Thearas/zsh-watch
zsh zsh-plugin
Last synced: about 2 months ago
JSON representation
Command watch for zsh that supports alias and completion.
- Host: GitHub
- URL: https://github.com/Thearas/zsh-watch
- Owner: Thearas
- License: wtfpl
- Created: 2023-02-19T09:16:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-05T08:23:12.000Z (almost 1 year ago)
- Last Synced: 2024-04-14T17:06:39.540Z (about 2 months ago)
- Topics: zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - zsh-watch - Simple `watch` that supports alias and completion. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - zsh-watch - Simple `watch` that supports alias and completion. (Plugins / ZSH on Windows)
README
# WATCH
Simple `watch` wrapper for zsh that **supports alias and completion.**
## Usage
Just `watch ` (press `` to complete):
```bash
# Watch the pods
watch kubectl get pod -n kube-system# Use alias
watch kgpn kube-system# With watch flags
watch -c -n1 -d -t kgp
```## Installation
1. Install `watch` (macOS only).
```bash
brew install watch
```2. Add `zsh-watch` to the plugins array in your zshrc file.
- Oh-My-Zsh
```bash
git clone https://github.com/Thearas/zsh-watch ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-watch# In your ~/.zshrc
plugins=(... zsh-watch)
```- Zinit
```bash
# In your ~/.zshrc
zinit light Thearas/zsh-watch
```- Zi
```bash
# In your ~/.zshrc
zi light Thearas/zsh-watch
```- Manual
```bash
git clone https://github.com/Thearas/zsh-watch ~/path/to/zsh-watch# In your ~/.zshrc
source ~/path/to/zsh-watch/zsh-watch.plugin.zsh
```## Use another `watch` command
Use [viddy](https://github.com/sachaos/viddy) instead of `watch`:
```bash
# In your ~/.zshrc
export ZSH_WATCH=viddy
export ZSH_WATCH_FLAGS="-t -d -n1 --pty"
```