Make mycd function use $EDITOR variable rather than vim
This commit is contained in:
parent
47a6b3c315
commit
d82d6dd413
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