From d82d6dd413441de3758377630eff85678e5b909a 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