config/.zsh/50_widget.zsh

9 lines
250 B
Bash
Raw Normal View History

2020-08-15 23:28:01 +02:00
# see http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#index-parameters_002c-zle
function watch_fonction() {
zle quote-line
BUFFER="watch -n1 ${BUFFER}"
zle accept-line
}
zle -N watch_widget watch_fonction
#bindkey '^t' watch_widget