diff --git a/.config/shell/bin/ned b/.config/shell/bin/ned index 6b9ca6c..8b3b620 100755 --- a/.config/shell/bin/ned +++ b/.config/shell/bin/ned @@ -9,7 +9,7 @@ # shellcheck disable=SC2068,SC2178,SC2128 # set default values if things are unset -NOTES_DIR="${NOTES_DIR:-"$HOME/Documents/college/current"}" +NOTES_DIR="${NOTES_DIR:-"$(git -C "$(dirname "$(realpath ~/todo)")" rev-parse --show-toplevel)"}" EDITOR="nvim" EDITOR_CMD="nvim -c :ZenMode"