feat(user/malte): note dir to print note directory

This commit is contained in:
Malte Tammena 2024-03-11 19:09:50 +01:00
parent 28ead25f70
commit 6194cad27d

View file

@ -49,6 +49,8 @@ function print_help_and_exit() {
printf " Show only yesterday/the day before/etc\n" printf " Show only yesterday/the day before/etc\n"
printf " git GIT_COMMAND\n" printf " git GIT_COMMAND\n"
printf " Execute a git command in the note repository\n" printf " Execute a git command in the note repository\n"
printf " dir\n"
printf " Print the note directory\n"
exit 1 exit 1
} }
@ -94,6 +96,11 @@ while [[ $# -gt 0 ]]; do
shift shift
run_git_command_by_args_and_exit "$@" run_git_command_by_args_and_exit "$@"
;; ;;
dir)
shift
echo "$XDG_DATA_HOME/life.md"
exit
;;
-h | --help) -h | --help)
print_help_and_exit print_help_and_exit
;; ;;