From d1674d74e1622ec13d09ff7c858c970460347c6e Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 2 Oct 2013 16:50:41 +0200 Subject: [Zsh] Kill -USR1 to reread config --- user:hugues/GusBindings.zsh | 2 +- zshrc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/user:hugues/GusBindings.zsh b/user:hugues/GusBindings.zsh index 4d3ede3..751fb5e 100644 --- a/user:hugues/GusBindings.zsh +++ b/user:hugues/GusBindings.zsh @@ -241,7 +241,7 @@ do bindkey -M $keymap -s '^[S' '^[Q sudo !!' - bindkey -M $keymap -s '^[X' '^[Q exec zsh -l\n' + bindkey -M $keymap -s '^[X' '^[Q kill -USR1 $$\n' bindkey -M $keymap -s '^[^[OA' 'up-line-or-history' bindkey -M $keymap -s '^[^[OB' 'down-line-or-history' diff --git a/zshrc b/zshrc index 056f884..a2fff9b 100644 --- a/zshrc +++ b/zshrc @@ -26,6 +26,8 @@ ZDOTDIR=${ZDOTDIR:-~/.zsh} mkdir -p $ZDOTDIR +trap "source ~/.zshrc" USR1 + # Useful environment variables which may be used # at any time - We compute them now to avoid calling # the required processes each time we'll need. -- cgit v1.2.3