This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/nf

8 lines
153 B
Plaintext
Raw Permalink Normal View History

2020-01-20 12:32:23 -06:00
#!/usr/bin/env sh
2019-05-08 13:31:23 -05:00
2020-01-20 14:28:45 -06:00
SUBDIR="${2:-./}"
2019-05-08 13:31:23 -05:00
mkdir -p "$NOTES_PATH/$SUBDIR"
2023-04-25 14:13:44 -05:00
cd "$NOTES_PATH/$SUBDIR" || exit 1
2019-05-08 13:31:23 -05:00
"$EDITOR" "$NOTES_PATH/$SUBDIR/$1"
2023-04-25 14:13:44 -05:00
cd - || exit 1