From 02ee3bd399de82ef6099f318aac1972824b7aa4b Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Thu, 3 Mar 2022 13:34:04 -0800 Subject: [PATCH] ned: ned is now much better at choosing the documents repository --- .config/shell/bin/ned | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"