]> arthur.barton.de Git - OhMyZshExtensions.git/blobdiff - plugins/editor_select/editor_select.plugin.zsh
"editor_select": Use "x=$(...)" instead of "x=`...`"
[OhMyZshExtensions.git] / plugins / editor_select / editor_select.plugin.zsh
index ed20a0258af29d4a259a409011924cd93037de70..f7acfb468aae1ce055a91bd8f8f6b78c10467ec8 100644 (file)
@@ -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