1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 00:05:10 +01:00

Provide 'vim' as fallback

This commit is contained in:
2018-02-09 10:47:14 +01:00
parent c4c9a422b7
commit b66fc50d32

View File

@@ -8,7 +8,7 @@ main() {
file_to_edit=`select_file $previous_file`
if [ -n "$file_to_edit" ] ; then
"$EDITOR" "$file_to_edit"
"${EDITOR:-vim}" "$file_to_edit"
main "$file_to_edit"
fi
}