Compare commits

..

10 Commits
temp ... master

Author SHA1 Message Date
91682d9992 updates 2024-10-29 19:33:21 -04:00
bae580c72a vault backup: 2024-01-23 10:28:09 2024-01-23 10:28:09 -05:00
be412ae489 vault backup: 2023-10-28 23:02:12 2023-10-28 23:02:12 -04:00
c8cf2c98da merge termux 2023-10-28 19:23:11 -04:00
ae4ce36eb4 merge 2023-10-28 19:16:35 -04:00
c7bc5d1f60 add vc 2023-09-25 07:35:13 -04:00
d133d0eb6d cj 2023-08-21 06:45:21 -04:00
4f711d1f3c color 2023-05-09 21:54:55 -04:00
e4d9373f1f aliases to push pull obsidian repos 2023-05-08 11:48:10 -04:00
4e9e21aa93 midify for termux 2023-05-08 10:34:10 -04:00
3 changed files with 21 additions and 8 deletions

26
.bashrc
View File

@ -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 "commit: $(date "+%Y-%m-%d %H:%M:%S")"
git push
}
# some more ls aliases
alias ll='ls -alFh'
alias la='ls -A'
@ -98,23 +103,25 @@ alias osw="lsof 2>/dev/null +D . | awk '\$NF ~ /swp$/ {print \$9}' | sed 's/\.sw
alias xpg="lsof 2>/dev/null +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
alias xsw="lsof 2>/dev/null +D . | grep '.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
alias ons='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)"'
alias xns='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)" | fzf | xargs -I % $PG -f %'
alias xns='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | sed "s/\\.swo$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $PG -f %'
alias xnsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | sed "s/\\.swo$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $PG -f % | pspg'
#alias xnsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)" | fzf | xargs -I % $PG -f % | pspg'
alias xnsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $PG -f % | pspg'
alias mns='fzf | xargs -I {} sqlcmd -U Pricing -S mid-sql02 -C -i {} | pspg'
alias xmsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $MS -i % | pspg'
alias nv='~/nvim-linux64/bin/nvim'
alias gs='git status -s'
alias ga='git status --untracked-files=all -s | fzf -m | awk "{print \$2}" | xargs git add '
alias gx='git status --untracked-files=all -s | fzf -m | awk "{print \$2}" | xargs git checkout '
alias td='rg "\- \[[^x]\]"'
# alias tdo='rg "\- \[[^x]\]" | fzf | xargs nvim'
alias tdo='rg "\- \[ \]" --line-number | fzf | awk -F: "{print \$1, \"+\"\$2}" | xargs -r nvim'
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"'
vc() {
git add .
git commit -m "vault backup: $(date "+%Y-%m-%d %H:%M:%S")"
git push
}
alias cj='cd ~/storage/shared/Documents/journal/'
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:
# sleep 10; alert
@ -140,7 +147,9 @@ 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"
@ -153,3 +162,4 @@ fi
bind 'set bell-style none'
[ -f ~/dot_config/.bashrc_local ] && source ~/dot_config/.bashrc_local
export PATH=$PATH:~/lua-language-server/bin

View File

@ -22,5 +22,7 @@
directory = /opt/forecast_api
directory = /etc/postgresql/15/main/
directory = /etc/postgresql/15/main
directory = /storage/emulated/0/Documents/journal
directory = /storage/emulated/0/Documents/hc_notes
[pull]
rebase = false

1
sync.sh Executable file
View File

@ -0,0 +1 @@
rsync -azv -e ssh -r /storage/emulated/0/DCIM/Camera pt@hptrow.me:/home/pt/pics