summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-10-02 16:50:41 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-10-03 18:35:01 +0200
commitd1674d74e1622ec13d09ff7c858c970460347c6e (patch)
treeebe877e60020841fa26f7d19d08e63616fbe58af
parentb6a39dca2f679d9aa78af09ea8c3d65f1dc43ef3 (diff)
[Zsh] Kill -USR1 to reread config
-rw-r--r--user:hugues/GusBindings.zsh2
-rw-r--r--zshrc2
2 files changed, 3 insertions, 1 deletions
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.