aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"