From 742773cf934f332b93ab1d6165822ea073d7ec49 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 14 Aug 2016 23:15:28 -0700 Subject: [PATCH] Move zsh specific uber code to zsh sourcing dir --- dotfiles/lib/shellenv/uber.sh | 4 ---- dotfiles/lib/zsh/uber.sh | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 dotfiles/lib/zsh/uber.sh diff --git a/dotfiles/lib/shellenv/uber.sh b/dotfiles/lib/shellenv/uber.sh index 059cb5d3..7ebe7e54 100644 --- a/dotfiles/lib/shellenv/uber.sh +++ b/dotfiles/lib/shellenv/uber.sh @@ -47,10 +47,6 @@ alias land_current='arc land $(git which-branch)' alias kill_h_forward='ps aux | grep ssh | grep 21300 | get_cols 2 | xargs kill -9' -autoload -U add-zsh-hook - -add-zsh-hook precmd uber_set_user_email_to_imalison - function uber_set_user_email_to_imalison { if in_git_directory; then diff --git a/dotfiles/lib/zsh/uber.sh b/dotfiles/lib/zsh/uber.sh new file mode 100644 index 00000000..7e16248c --- /dev/null +++ b/dotfiles/lib/zsh/uber.sh @@ -0,0 +1,2 @@ +autoload -U add-zsh-hook +add-zsh-hook precmd uber_set_user_email_to_imalison