From 9ed4fb9053791d79e04918cec145e2e317b3ea46 Mon Sep 17 00:00:00 2001 From: Moshe Zada Date: Fri, 27 Feb 2015 17:27:31 +0200 Subject: [PATCH] Handle SIGHUP by reloading zshrc --- zsh/aliases.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 41bc026..81dd5b9 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -44,8 +44,13 @@ fi alias lsg='ll | grep' # Alias Editing +TRAPHUP() { + source $yadr/zsh/aliases.zsh +} + alias ae='vim $yadr/zsh/aliases.zsh' #alias edit alias ar='source $yadr/zsh/aliases.zsh' #alias reload +alias gar="killall -HUP -u \"$USER\" zsh" #global alias reload # vim using mvim --version > /dev/null 2>&1