From b5e50d51c2f7cfe2a268cf788ae906dcf2f55cb3 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 2 Apr 2015 17:52:42 +0200 Subject: [PATCH] "editor_select": (Re-)define "zshrc" alias using $EDITOR --- plugins/editor_select/editor_select.plugin.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/editor_select/editor_select.plugin.zsh b/plugins/editor_select/editor_select.plugin.zsh index 423b2dc..ed20a02 100644 --- a/plugins/editor_select/editor_select.plugin.zsh +++ b/plugins/editor_select/editor_select.plugin.zsh @@ -1,5 +1,5 @@ # editor-select.plugin.zsh -# 2015-03-27, alex@barton.de +# 2015-04-02, alex@barton.de if [ -z "$EDITOR" ]; then # Check "mate" @@ -21,4 +21,7 @@ if [ -z "$EDITOR" ]; then fi fi fi -[ -n "$EDITOR" ] && export EDITOR +if [ -n "$EDITOR" ]; then + export EDITOR + alias zshrc="$EDITOR ~/.zshrc" +fi -- 2.39.2