#!/usr/bin/bash set -euo pipefail APP_NAME=notes # Log with notify-send and exit 1 err() { notify-send --app-name="$APP_NAME" --icon="accessories-text-editor" \ "Neovim notes plugin" "$NOTES_DIR does not exist or is not a directory" exit 1 } [[ -d $NOTES_DIR ]] || err cd "$NOTES_DIR" exec foot -- \ tmux new-session -A -D -s "$APP_NAME" -- \ nvim -c "NotesFindTags"