diff --git a/plugins/refresh/refresh.plugin.zsh b/plugins/refresh/refresh.plugin.zsh new file mode 100644 index 000000000..425ed91ec --- /dev/null +++ b/plugins/refresh/refresh.plugin.zsh @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh +# ------------------------------------------------------------------------------ +# Simple ZLE widget that binds F5 to "source ~/.zshrc". +# ------------------------------------------------------------------------------ + +_refresh() { source ~/.zshrc } +zle -N _refresh +bindkey '^[[15~' _refresh