aboutsummaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-01 07:34:14 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-01 07:34:14 +0100
commit28e224678e81bfbddac38c758c5b1cea8ea6917d (patch)
tree007d2cfa0be3f4e3b56ade452a572dc0510335e0 /bashrc
parent63a9e397c655f6e04be9fb03634ec228d59b6e14 (diff)
Adds a few nice functions for my one big text file
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc34
1 files changed, 34 insertions, 0 deletions
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