Skip to content

Commit 5e1d506

Browse files
authored
Merge pull request #3 from ecksun/fallback_editor
Use fallback editor if $EDITOR undefined
2 parents be7d1f7 + 3d6371b commit 5e1d506

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)