From 43cbabf164f499c6b2e2cd7670d0bf251dcd09cc Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 24 Apr 2018 08:35:08 +0100 Subject: [PATCH] Make mycd function use $EDITOR variable rather than vim --- shells/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shells/functions b/shells/functions index 515a31d5..63264c72 100644 --- a/shells/functions +++ b/shells/functions @@ -45,7 +45,7 @@ function mycd() { else # If we get here, cd was not successful if [ -f "$1" ]; then - vim "$1" + $EDITOR "$1" else echo "Can't cd" exit 1