diff --git a/.bashrc b/.bashrc index 6b7aff8..d41ae67 100644 --- a/.bashrc +++ b/.bashrc @@ -87,6 +87,11 @@ fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' +vc() { + git add . + git commit -m "vault backup: $(date "+%Y-%m-%d %H:%M:%S")" + git push +} # some more ls aliases alias ll='ls -alFh' alias la='ls -A' @@ -108,7 +113,7 @@ alias gc='git commit -v' alias gd='git difftool' alias gl='git log --graph --oneline --format="%C(yellow)%h %C(green)%an%Creset %C(blue)%ad%Creset %s"' alias cj='cd ~/storage/shared/Documents/journal/' -alias jr='cd ~/storage/shared/Documents/journal/ && git pull && git push && cd -' +alias jr='cd ~/storage/shared/Documents/journal/ && git pull && vc && cd -' alias hc='cd ~/storage/shared/Documents/hc_notes/ && git pull && git push && cd -' # Add an "alert" alias for long running commands. Use like so: