mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Added a plugin for reloading .zshrc with F5
This commit is contained in:
parent
583c984a86
commit
6c4bffca66
1 changed files with 8 additions and 0 deletions
8
plugins/refresh/refresh.plugin.zsh
Normal file
8
plugins/refresh/refresh.plugin.zsh
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue