Skip to content

Commit 3d6371b

Browse files
author
Linus Wallgren
committed
Use fallback editor if $EDITOR undefined
1 parent be7d1f7 commit 3d6371b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

notes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
EDITOR=${EDITOR:-editor}
4+
35
configured_dir=${NOTES_DIRECTORY%/} # Remove trailing slashes
46
notes_dir="${configured_dir:-$HOME/notes}"
57
escaped_notes_dir=$(printf $notes_dir | sed -e 's/[]\/$*.^|[]/\\&/g')

0 commit comments

Comments
 (0)