Last active
February 14, 2019 10:13
-
-
Save ston1x/5a92c4f55197daac778c7a2a050f064e to your computer and use it in GitHub Desktop.
Quick notes in vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write a quick note and instantly stash it to a place where all your quick | |
# thoughts can be stored to sort them out later. | |
# Can be added to your .bashrc / .zshrc / etc. | |
function stash_note { | |
echo $(date; cat ~/note) >> ~/notes && cat /dev/null > ~/note | |
} | |
alias notes='vim ~/notes' | |
alias note='vim ~/note && stash_note' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment