Make mycd function use $EDITOR variable rather than vim

This commit is contained in:
Jonathan Hodgson 2018-04-24 08:35:08 +01:00
parent 47a6b3c315
commit d82d6dd413

View file

@ -45,7 +45,7 @@ function mycd() {
else else
# If we get here, cd was not successful # If we get here, cd was not successful
if [ -f "$1" ]; then if [ -f "$1" ]; then
vim "$1" $EDITOR "$1"
else else
echo "Can't cd" echo "Can't cd"
exit 1 exit 1