From: Alexander Barton Date: Thu, 2 Apr 2015 15:52:42 +0000 (+0200) Subject: "editor_select": (Re-)define "zshrc" alias using $EDITOR X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=b5e50d51c2f7cfe2a268cf788ae906dcf2f55cb3;p=OhMyZshExtensions.git "editor_select": (Re-)define "zshrc" alias using $EDITOR --- 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