Make mycd function use $EDITOR variable rather than vim

Jonathan Hodgson 7 years ago
parent 47a6b3c315
commit d82d6dd413
  1. 2
      shells/functions

@ -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

Loading…
Cancel
Save