This commit is contained in:
Paul Trowbridge 2023-04-04 12:45:00 -04:00
parent 78876b1fe9
commit 1f69c5ae8c
3 changed files with 21 additions and 19 deletions

21
.bashrc
View File

@ -128,28 +128,17 @@ alias opg="lsof +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' |
alias osw="lsof +D . | awk '\$NF ~ /swp$/ {print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'"
alias xpg="lsof +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
alias xsw="lsof +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 % | pspg'
alias mns='fzf | xargs -I {} sqlcmd.exe -S usmidsql01 -i {}'
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
GIT_PROMPT_ONLY_IN_REPO=1
source $HOME/.bash-git-prompt/gitprompt.sh
fi
#GOPATH=$HOME/go
#function _update_ps1() {
# #PS1="$($GOPATH/bin/powerline-go -theme low-contrast -condensed -error $?)"
# PS1="$($GOPATH/bin/powerline-go -condensed -error $?)"
#}
#if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
# PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
#fi
export DENO_INSTALL="/home/ptrowbridge/.deno"
export PATH=$PATH:"$DENO_INSTALL/bin:$PATH"
eval `keychain --eval id_rsa`
bind 'set bell-style none'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
[ -f ~/dot_config/.bashrc_local ] && source ~/dot_config/.bashrc_local

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.swp
.bashrc_local

View File

@ -9,9 +9,21 @@ set -g mouse on
#plugin manager for install tmux-resurrect
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/default/purple'
#-----------------------nova---------------------------------------------
#set -g @plugin 'o0th/tmux-nova'
#set -g @nova-nerdfonts true
#set -g @nova-nerdfonts-left 
#set -g @nova-nerdfonts-right 
#set -g @nova-segment-mode "#{?client_prefix,Ω,ω}"
#set -g @nova-segment-mode-colors "#50fa7b #282a36"
#set -g @nova-segment-whoami "#(whoami)@#h"
#set -g @nova-segment-whoami-colors "#50fa7b #282a36"
#set -g @nova-pane "#I#{?pane_in_mode,  #{pane_mode},}  #W"
#set -g @nova-rows 0
#set -g @nova-segments-0-left "mode"
#set -g @nova-segments-0-right "whoami"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# mouse support
set -g mouse on