From: Samir Benmendil Date: Sun, 18 Nov 2012 00:22:15 +0000 (+0100) Subject: default to vim if EDITOR not set X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b8fadcecf9c7c39082eee14ab78e188f60b56735 default to vim if EDITOR not set --- diff --git a/bin/vp b/bin/vp index a979204..b4ef8b8 100755 --- a/bin/vp +++ b/bin/vp @@ -1,7 +1,7 @@ -#! /bin/bash +#!/bin/bash # Open PKGBUILD if it exists and exit - [[ -e PKGBUILD ]] && $EDITOR PKGBUILD && exit + [[ -e PKGBUILD ]] && ${EDITOR:-vim} PKGBUILD && exit ################################################################################