Make mycd function use $EDITOR variable rather than vim

master
Jonathan Hodgson 6 years ago
parent a1f45666a3
commit 43cbabf164
  1. 2
      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

Loading…
Cancel
Save