From b66fc50d3250735571c6ccf0a2f9448d1f3ef0ef Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 9 Feb 2018 10:47:14 +0100 Subject: [PATCH] Provide 'vim' as fallback --- bin/fuz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fuz b/bin/fuz index 00626fa..88f5933 100755 --- a/bin/fuz +++ b/bin/fuz @@ -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 }