Make mycd function use $EDITOR variable rather than vim
This commit is contained in:
parent
a1f45666a3
commit
43cbabf164
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue