From c7bc5d1f60c8611a1f5a7e85b2cd5495696adc8e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 25 Sep 2023 07:35:13 -0400 Subject: [PATCH] add vc --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: