aboutsummaryrefslogtreecommitdiffstats
path: root/lem_openbsd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlem_openbsd21
1 files changed, 21 insertions, 0 deletions
diff --git a/lem_openbsd b/lem_openbsd
new file mode 100755
index 0000000..1eb7e92
--- /dev/null
+++ b/lem_openbsd
@@ -0,0 +1,21 @@
+#!/usr/local/bin/bash
+
+NOTES=/home/$USER/Notes
+TARGET_DIR=$NOTES/homezet
+VIM=/usr/local/bin/vim
+
+if [[ "$1" = "-m" ]]; then
+ msg="${*:2}"
+ TARGET_DIR=$NOTES/modzet
+ shift
+else
+ msg="$@"
+ shift
+fi
+
+
+STAMP="$(date +%G%m%d%H%M%S)"
+F_PATH="$TARGET_DIR/$STAMP-$msg.md"
+echo $F_PATH
+
+$VIM "$F_PATH"