mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 04:44:24 -05:00
Init
This commit is contained in:
12
shell/tmp_note.sh
Executable file
12
shell/tmp_note.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env zsh
|
||||
# This is for nixos specific
|
||||
|
||||
# simple script to create and use a temporary note file
|
||||
|
||||
# Create new temporary file if not already exists for this date
|
||||
if [ ! -f /tmp/notes.md ]; then
|
||||
echo -e "# $(date)\n\n" >/tmp/notes.md
|
||||
fi
|
||||
|
||||
# Instantly enter the insert mode at the bottom for less friction
|
||||
nvim -c "e /tmp/notes.md" -c "normal G" -c "normal k" -c "normal o" -c "startinsert"
|
||||
Reference in New Issue
Block a user