aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-04-01 15:55:03 +0100
committerMatthew Lemon <y@yulqen.org>2023-04-01 15:55:03 +0100
commit8163b1c4c033c0ec5e57bd8a0f40995d9abb171c (patch)
tree4ef418e3b9d096513225c571a9f8e381e2b15b50
parent3ebe99229ac75949fa345b211f5171b21c9fb852 (diff)
more updates
-rw-r--r--bashrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 6ed8a79..26c5523 100644
--- a/bashrc
+++ b/bashrc
@@ -4,6 +4,9 @@ complete -cf sudo man which
# reduce history size
export HISTCONTROL=ignoreboth
+# vi mode
+#set -o vi
+
# prevent clobbering of files
# echo "output" >| file.txt to do it manually
set -o noclobber
@@ -15,6 +18,9 @@ export PATH=~/bin/:$PATH
source $HOME/dotfiles/openai_key
# aliases
+alias gloga='git log --oneline --decorate --graph --all'
+alias am='append_to_masterlist'
+alias vi='vim'
alias ls='ls --color=auto'
alias h='hey_openai'
alias hd='openai_data'
@@ -116,5 +122,11 @@ hey_openai() {
echo $gpt | jq -r '.choices[0].message.content'
}
+append_to_masterlist() {
+ ml=~/Documents/Notes/todo/masterlist.txt
+ echo "$1" >> "$ml"
+ cat "$ml"
+}
+
# Colors for ls - yellow directories
export LS_COLORS="$LS_COLORS:di=1;33"