From 28e224678e81bfbddac38c758c5b1cea8ea6917d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 1 Sep 2024 07:34:14 +0100 Subject: Adds a few nice functions for my one big text file --- bashrc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 1bf7f26..48c1484 100644 --- a/bashrc +++ b/bashrc @@ -355,6 +355,40 @@ append_to_masterlist() { export GEM_HOME="$HOME/gems" +# note() { +# printf "%s\n" "$(date +"%Y-%m-%d: ") $1" >> notes.txt +# } + +# log() { +# printf "%s\n" "$(date +"%Y-%m-%d: ") $*" >> ~/Documents/Notes/Scratch/scratchpad.md +# } + +log() { + printf "%s\n" "$(date +"%Y-%m-%d %A: ") $*" >> ~/Documents/Notes/Scratch/scratchpad.txt +} + +doo() { + printf "%s\n" "- [ ] $*" >> ~/Documents/Notes/Scratch/scratchpad.txt +} + +idea() { + printf "%s\n" "IDEA: $*" >> ~/Documents/Notes/Scratch/scratchpad.txt +} + +n() { + printf "%s\n" "NOTE: $*" >> ~/Documents/Notes/Scratch/scratchpad.txt +} + +toread() { + printf "%s\n" "TOREAD: $*" >> ~/Documents/Notes/Scratch/scratchpad.txt +} + +flag() { + printf "%s\n" "FLAG: $*" >> ~/Documents/Notes/Scratch/scratchpad.txt +} + + + # get best audio of YouTube file or playlist (just use the right URL) ytmp3 () { if [ -z "$1" ]; then print "I need a valid YouTube URL.\n"; fi -- cgit v1.2.3