We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 673d39e commit b1e53beCopy full SHA for b1e53be
_notes
@@ -31,6 +31,11 @@ __notes_cmd ()
31
32
_notes ()
33
{
34
+ # Look for configuration file at ~/.config/notes/config and use it
35
+ if [ -f ~/.config/notes/config ]; then
36
+ . ~/.config/notes/config
37
+ fi
38
+
39
local configured_dir=${NOTES_DIRECTORY%/}
40
local note_dir="${configured_dir:-$HOME/notes}"
41
notes.bash_completion
@@ -1,6 +1,11 @@
1
#!/bin/bash
2
3
_notes_complete_notes() {
4
5
6
7
8
9
local configured_dir=${NOTES_DIRECTORY%/} # Remove trailing slashes
10
local notes_dir="${configured_dir:-$HOME/notes}"
11
local OLD_IFS="$IFS"
0 commit comments