From f3ea899e9f72cd0039fba0c7800af12ca533aeca Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Thu, 22 Nov 2012 14:13:15 +0100 Subject: [PATCH] zsh: trap USR1 signal to source config file --- zsh/zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 94b35ec..830099c 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -147,6 +147,7 @@ alias youtube='quvi --exec "mplayer %u"' alias poweroff='sudo poweroff' alias xephyr-dualscreen='Xephyr -ac -br -noreset -screen 800x600 -screen 800x600 :1& DISPLAY=:1; setxkbmap fr bepo' alias xephyr-onescreen='Xephyr -ac -br -noreset -screen 800x600 :1& DISPLAY=:1; setxkbmap fr bepo' +alias reload="pkill -u `id -u` -USR1 zsh" alias -s pdf=zathura alias -s ps=gv @@ -181,3 +182,5 @@ function send_infocmp() { REMOTE=$1 infocmp rxvt-unicode-256color | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti" } + +trap "source ~/.zshrc && rehash" USR1