diff options
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/notes | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/.local/bin/notes b/.local/bin/notes index cdafd6b..778138d 100755 --- a/.local/bin/notes +++ b/.local/bin/notes @@ -4,12 +4,10 @@ set -euo pipefail app_name=notes if ! [[ -d $NOTES_DIR ]]; then notify-send --app-name="$app_name" --icon="accessories-text-editor" \ - "Notes" "Could not open NOTES_DIR ($NOTES_DIR)" + "Neovim notes plugin" "$NOTES_DIR does not exist or is not a directory" exit 1 fi cd "$NOTES_DIR" -# Open the notes directory in foot, inside a persistent tmux session named -# "notes" (stolen if it already exists), landing straight into an fzf picker exec foot --app-id="$app_name" -- \ tmux new-session -A -D -s "$app_name" -- \ nvim -c "NotesFindTags" |
