From 4e9e21aa938c61b767829256c5a97f1395a7188b Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 8 May 2023 10:34:10 -0400 Subject: [PATCH 1/5] midify for termux --- .bashrc | 12 +++++++----- .gitconfig | 2 ++ .vimrc | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index 731cb95..09e5e9d 100644 --- a/.bashrc +++ b/.bashrc @@ -132,15 +132,17 @@ if ! shopt -oq posix; then fi fi -EDITOR=/usr/bin/vim.basic +#EDITOR=/usr/bin/vim.basic +export EDITOR=vim +export VISUAL=vim PAGER="less" LESS="-S" export PSQL_PAGER="pspg" -if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then - GIT_PROMPT_ONLY_IN_REPO=1 - source $HOME/.bash-git-prompt/gitprompt.sh -fi +#if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then +# GIT_PROMPT_ONLY_IN_REPO=1 +# source $HOME/.bash-git-prompt/gitprompt.sh +#fi bind 'set bell-style none' diff --git a/.gitconfig b/.gitconfig index 6df2e20..2de4543 100644 --- a/.gitconfig +++ b/.gitconfig @@ -20,5 +20,7 @@ directory = /var/www/html/resume directory = /opt/forecast_api/ directory = /opt/forecast_api + directory = /storage/emulated/0/Documents/journal + directory = /storage/emulated/0/Documents/hc_notes [pull] rebase = false diff --git a/.vimrc b/.vimrc index 782b97f..ad6ec89 100644 --- a/.vimrc +++ b/.vimrc @@ -26,7 +26,7 @@ let NERDTreeShowHidden=1 set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab set mouse=a set nowrap -colorscheme darkblue +colorscheme default syntax on set splitright set splitbelow From e4d9373f1f65c2726520a524e489fc567c120441 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 8 May 2023 11:48:10 -0400 Subject: [PATCH 2/5] aliases to push pull obsidian repos --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 09e5e9d..3bf9e77 100644 --- a/.bashrc +++ b/.bashrc @@ -107,6 +107,8 @@ alias gr='git reset HEAD' 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 jr='cd ~/storage/shared/Documents/journal/ && git pull && git push && 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: # sleep 10; alert From 4f711d1f3c0550b53d9ac80a3488df6699402b36 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 9 May 2023 21:54:55 -0400 Subject: [PATCH 3/5] color --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index ad6ec89..6e2ac55 100644 --- a/.vimrc +++ b/.vimrc @@ -26,7 +26,7 @@ let NERDTreeShowHidden=1 set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab set mouse=a set nowrap -colorscheme default +colorscheme desert syntax on set splitright set splitbelow From d133d0eb6d896858c0e637da63e93964da4c60b1 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 21 Aug 2023 06:45:21 -0400 Subject: [PATCH 4/5] cj --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 3bf9e77..6b7aff8 100644 --- a/.bashrc +++ b/.bashrc @@ -107,6 +107,7 @@ alias gr='git reset HEAD' 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 hc='cd ~/storage/shared/Documents/hc_notes/ && git pull && git push && cd -' From c7bc5d1f60c8611a1f5a7e85b2cd5495696adc8e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 25 Sep 2023 07:35:13 -0400 Subject: [PATCH 5/5] 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: