zsh: trap USR1 signal to source config file

master
Guillaume DOTT 2012-11-22 14:13:15 +01:00
parent f4ee704353
commit f3ea899e9f
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,7 @@ alias youtube='quvi --exec "mplayer %u"'
alias poweroff='sudo poweroff' alias poweroff='sudo poweroff'
alias xephyr-dualscreen='Xephyr -ac -br -noreset -screen 800x600 -screen 800x600 :1& DISPLAY=:1; setxkbmap fr bepo' 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 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 pdf=zathura
alias -s ps=gv alias -s ps=gv
@ -181,3 +182,5 @@ function send_infocmp() {
REMOTE=$1 REMOTE=$1
infocmp rxvt-unicode-256color | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti" infocmp rxvt-unicode-256color | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti"
} }
trap "source ~/.zshrc && rehash" USR1