15 lines
247 B
Bash
15 lines
247 B
Bash
# Watch command output with 2 second interval.
|
|
# Usage: w <COMMAND>
|
|
w() {
|
|
watch -n 2 "${@}"
|
|
}
|
|
|
|
# Watch command output with minimal interval.
|
|
# Usage: ww <COMMAND>
|
|
ww() {
|
|
watch -n 0 "${@}"
|
|
}
|
|
|
|
# autocomplete.
|
|
complete -F _autocomplete_nested w ww
|