From: Alexander Barton Date: Sun, 24 May 2015 20:18:51 +0000 (+0200) Subject: "editor_select": Use "x=$(...)" instead of "x=`...`" X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=ad6a6ced0f530770cb7c73cc0d484148cf862298;p=OhMyZshExtensions.git "editor_select": Use "x=$(...)" instead of "x=`...`" --- diff --git a/plugins/editor_select/editor_select.plugin.zsh b/plugins/editor_select/editor_select.plugin.zsh index ed20a02..f7acfb4 100644 --- a/plugins/editor_select/editor_select.plugin.zsh +++ b/plugins/editor_select/editor_select.plugin.zsh @@ -3,20 +3,20 @@ if [ -z "$EDITOR" ]; then # Check "mate" - EDITOR=`which mate 2>/dev/null` + EDITOR=$(which mate 2>/dev/null) if [ $? -eq 0 ]; then EDITOR="$EDITOR --wait" else # Check "subl" - EDITOR=`which subl 2>/dev/null` + EDITOR=$(which subl 2>/dev/null) if [ $? -eq 0 ]; then EDITOR="$EDITOR --wait" else # Check "vim" - EDITOR=`which vim 2>/dev/null` + EDITOR=$(which vim 2>/dev/null) if [ $? -ne 0 ]; then # Check "vi" - EDITOR=`which vi 2>/dev/null` + EDITOR=$(which vi 2>/dev/null) fi fi fi