Compare commits
19 Commits
8f48bd0aec
...
1f69c5ae8c
Author | SHA1 | Date | |
---|---|---|---|
1f69c5ae8c | |||
78876b1fe9 | |||
ecda413f11 | |||
9b6d07193d | |||
e45b822767 | |||
fe34917fb5 | |||
98faeb58c9 | |||
8d02d2e6f7 | |||
66fcf702d4 | |||
1429d228e5 | |||
cb6dfa4ec3 | |||
fb31622c31 | |||
08d1b789d3 | |||
99a7e580e7 | |||
7e29a16a96 | |||
5c6ddd41cb | |||
d21d617af9 | |||
804f6800d2 | |||
6488d20fcc |
32
.bashrc
32
.bashrc
@ -120,31 +120,25 @@ EDITOR=/usr/bin/vim.basic
|
|||||||
PAGER="less"
|
PAGER="less"
|
||||||
LESS="-S"
|
LESS="-S"
|
||||||
export IPTOKEN="6ac0a563fc06ab"
|
export IPTOKEN="6ac0a563fc06ab"
|
||||||
export PG="psql -U ptrowbridge -d ubm -p 5030 -h usmidlnx01"
|
export PG="psql -U ptrowbridge -d ubm -p 5432 -h usmidsap01"
|
||||||
export PGD="psql -U ptrowbridge -d ubm -p 5432 -h usmidlnx01"
|
|
||||||
export RU="//mnt/c/Users/PTrowbridge/AppData/Roaming/runner"
|
|
||||||
export HP="//mnt/c/Users/PTrowbridge"
|
|
||||||
export XL="//mnt/c/Program\ Files/Microsoft\ Office/root/Office16/EXCEL.EXE"
|
|
||||||
export WTS="//mnt/c/Users/PTrowbridge/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json"
|
|
||||||
export PATH=$PATH:"//mnt/c/Program Files/VideoLAN/VLC"
|
|
||||||
export PATH=$PATH:"//mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application"
|
|
||||||
export MS="sqlcmd.exe -S mid-sql02 -i"
|
export MS="sqlcmd.exe -S mid-sql02 -i"
|
||||||
|
export PSQL_PAGER="pspg"
|
||||||
|
alias opg="lsof +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'"
|
||||||
|
#alias opg="lsof +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r realpath"
|
||||||
|
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
|
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
||||||
GIT_PROMPT_ONLY_IN_REPO=1
|
GIT_PROMPT_ONLY_IN_REPO=1
|
||||||
source $HOME/.bash-git-prompt/gitprompt.sh
|
source $HOME/.bash-git-prompt/gitprompt.sh
|
||||||
fi
|
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"
|
bind 'set bell-style none'
|
||||||
export PATH=$PATH:"$DENO_INSTALL/bin:$PATH"
|
|
||||||
|
|
||||||
eval `keychain --eval id_rsa`
|
|
||||||
|
[ -f ~/dot_config/.bashrc_local ] && source ~/dot_config/.bashrc_local
|
||||||
|
@ -7,11 +7,10 @@
|
|||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
[alias]
|
[alias]
|
||||||
quick-stats = ! /usr/local/bin/git-quick-stats
|
pushall = !git remote | xargs -L1 git push --all
|
||||||
pushall = !git remote | xargs -L1 git push
|
|
||||||
[log]
|
[log]
|
||||||
date = format:%Y-%m-%d %H:%M:%S
|
date = format:%Y-%m-%d %H:%M:%S
|
||||||
[format]
|
[format]
|
||||||
pretty = format:'%C(yellow)%h %Cred%ad %Cblue%an %Cgreen%d %Creset%s'
|
pretty = format:'%C(yellow)%h %Cred%ad %Cblue%an %Cgreen%d %Creset%s'
|
||||||
[diff]
|
[diff]
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.swp
|
*.swp
|
||||||
|
.bashrc_local
|
||||||
|
34
.pspgconf
Normal file
34
.pspgconf
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
ascii_menu = false
|
||||||
|
bold_labels = false
|
||||||
|
bold_cursor = false
|
||||||
|
ignore_case = false
|
||||||
|
ignore_lower_case = false
|
||||||
|
no_cursor = false
|
||||||
|
no_sound = false
|
||||||
|
no_mouse = false
|
||||||
|
less_status_bar = false
|
||||||
|
no_highlight_search = false
|
||||||
|
no_highlight_lines = false
|
||||||
|
force_uniborder = false
|
||||||
|
show_rownum = false
|
||||||
|
without_commandbar = false
|
||||||
|
without_topbar = false
|
||||||
|
vertical_cursor = false
|
||||||
|
on_sigint_exit = false
|
||||||
|
no_sigint_search_reset = false
|
||||||
|
double_header = false
|
||||||
|
quit_on_f3 = false
|
||||||
|
pgcli_fix = false
|
||||||
|
xterm_mouse_mode = true
|
||||||
|
show_scrollbar = true
|
||||||
|
menu_always = false
|
||||||
|
empty_string_is_null = true
|
||||||
|
last_row_search = true
|
||||||
|
progressive_load_mode = true
|
||||||
|
highlight_odd_rec = false
|
||||||
|
hide_header_line = false
|
||||||
|
theme = 0
|
||||||
|
border_type = 2
|
||||||
|
default_clipboard_format = 0
|
||||||
|
clipboard_app = 0
|
||||||
|
hist_size = 500
|
19
.tmux.conf
19
.tmux.conf
@ -4,13 +4,26 @@ bind -r h select-pane -L # move left
|
|||||||
bind -r j select-pane -D # move down
|
bind -r j select-pane -D # move down
|
||||||
bind -r k select-pane -U # move up
|
bind -r k select-pane -U # move up
|
||||||
bind -r l select-pane -R # move right
|
bind -r l select-pane -R # move right
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
#plugin manager for install tmux-resurrect
|
#plugin manager for install tmux-resurrect
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
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)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
# mouse support
|
|
||||||
set -g mouse on
|
|
||||||
|
13
.vimrc
13
.vimrc
@ -8,11 +8,11 @@ call vundle#begin()
|
|||||||
Plugin 'gmarik/Vundle.vim'
|
Plugin 'gmarik/Vundle.vim'
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plugin 'vim-airline/vim-airline'
|
||||||
Plugin 'kien/ctrlp.vim'
|
Plugin 'kien/ctrlp.vim'
|
||||||
Plugin 'tpop/vim-fugitive'
|
|
||||||
Plugin 'scrooloose/nerdtree'
|
Plugin 'scrooloose/nerdtree'
|
||||||
Plugin 'edkolev/tmuxline.vim'
|
Plugin 'edkolev/tmuxline.vim'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
Plugin 'plasticboy/vim-markdown'
|
Plugin 'leafgarland/typescript-vim'
|
||||||
|
Plugin 'peitalin/vim-jsx-typescript'
|
||||||
"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
|
"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
@ -26,7 +26,7 @@ let NERDTreeShowHidden=1
|
|||||||
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
|
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set nowrap
|
set nowrap
|
||||||
colorscheme ron
|
colorscheme darkblue
|
||||||
syntax on
|
syntax on
|
||||||
set splitright
|
set splitright
|
||||||
set splitbelow
|
set splitbelow
|
||||||
@ -39,7 +39,8 @@ let g:netrw_altv = 1
|
|||||||
let g:netrw_winsize = 25
|
let g:netrw_winsize = 25
|
||||||
"----airline tabs for buffers-------
|
"----airline tabs for buffers-------
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:airline_theme = 'dark'
|
let g:airline_theme = 'violet'
|
||||||
|
let g:airline_solarized_bg='dark'
|
||||||
let g:tmuxline_powerline_separators = 1
|
let g:tmuxline_powerline_separators = 1
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
"----markdown folding------------
|
"----markdown folding------------
|
||||||
@ -60,6 +61,10 @@ nmap <Leader>e :NERDTreeToggle<CR>
|
|||||||
set incsearch
|
set incsearch
|
||||||
set showmatch
|
set showmatch
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
set mouse=a
|
||||||
|
"----disable the bell; t_vb is required to be set to nothing
|
||||||
|
set visualbell
|
||||||
|
set t_vb=
|
||||||
nnoremap \\ :noh<cr> " Clear higlighting
|
nnoremap \\ :noh<cr> " Clear higlighting
|
||||||
"nnoremap <esc> :noh<return><esc>
|
"nnoremap <esc> :noh<return><esc>
|
||||||
" Resize windows
|
" Resize windows
|
||||||
|
89
setup.sh
89
setup.sh
@ -5,7 +5,49 @@
|
|||||||
|
|
||||||
dir=~/dot_config
|
dir=~/dot_config
|
||||||
backup=~/dot_config_backup
|
backup=~/dot_config_backup
|
||||||
files=".bashrc .vimrc .tmux.conf .psqlrc .gitconfig"
|
files=".bashrc .vimrc .tmux.conf .psqlrc .gitconfig .inputrc .pspgconf"
|
||||||
|
|
||||||
|
#-------------------------------------------------install debian tooling-----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#----------curl-----------
|
||||||
|
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ]
|
||||||
|
then
|
||||||
|
echo "curl already installed"
|
||||||
|
else
|
||||||
|
echo "installing curl..."
|
||||||
|
apt update -q4
|
||||||
|
sudo apt install curl -y
|
||||||
|
fi
|
||||||
|
|
||||||
|
#----------vim-----------
|
||||||
|
if [ "$(dpkg-query -W -f='${Status}' "vim" 2>/dev/null | grep -c "ok installed")" == "1" ]
|
||||||
|
then
|
||||||
|
echo "vim already installed"
|
||||||
|
else
|
||||||
|
echo "installing vim..."
|
||||||
|
apt update -q4
|
||||||
|
sudo apt install vim -y
|
||||||
|
fi
|
||||||
|
|
||||||
|
#----------tmux-----------
|
||||||
|
if [ "$(dpkg-query -W -f='${Status}' "tmux" 2>/dev/null | grep -c "ok installed")" == "1" ]
|
||||||
|
then
|
||||||
|
echo "tmux already installed"
|
||||||
|
else
|
||||||
|
echo "installing tmux..."
|
||||||
|
apt update -q4
|
||||||
|
sudo apt install tmux -y
|
||||||
|
fi
|
||||||
|
|
||||||
|
#----------pspg-----------
|
||||||
|
if [ "$(dpkg-query -W -f='${Status}' "pspg" 2>/dev/null | grep -c "ok installed")" == "1" ]
|
||||||
|
then
|
||||||
|
echo "pspg already installed"
|
||||||
|
else
|
||||||
|
echo "installing pspg..."
|
||||||
|
apt update -q4
|
||||||
|
sudo apt install pspg -y
|
||||||
|
fi
|
||||||
|
|
||||||
#------------------------------------------------ create the resore directory if it doesn't already exist--------------------------------------------------
|
#------------------------------------------------ create the resore directory if it doesn't already exist--------------------------------------------------
|
||||||
|
|
||||||
@ -32,17 +74,17 @@ done
|
|||||||
|
|
||||||
#----------------------------------------------------------install go and go-powerline--------------------------------------------------------------------
|
#----------------------------------------------------------install go and go-powerline--------------------------------------------------------------------
|
||||||
|
|
||||||
|
# if $GOPATH is null the prompt for golang install
|
||||||
if [ -z "$GOPATH" ]
|
if [ -z "$GOPATH" ]
|
||||||
then
|
then
|
||||||
while true; do
|
while true; do
|
||||||
read -p "do you want to install golang and go-powerline?" yn
|
read -p "do you want to install golang (needed for go-powerline)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
sudo apt-get install golang -y;
|
sudo apt-get install golang -y;
|
||||||
go get -u github.com/justjanne/powerline-go;
|
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -50,27 +92,28 @@ fi
|
|||||||
|
|
||||||
#----------------------------------------------------------install go-powerline---------------------------------------------------------------------------
|
#----------------------------------------------------------install go-powerline---------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ -z "$GOPATH" ]
|
# see if this file exists, if not prompt for install
|
||||||
|
if [ ! -f ~/go/bin/powerline-go ]
|
||||||
then
|
then
|
||||||
while true; do
|
while true; do
|
||||||
read -p "do you want to install golang and go-powerline?" yn
|
read -p "do you want to install go-powerline?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
sudo apt-get install golang -y;
|
|
||||||
go get -u github.com/justjanne/powerline-go;
|
go get -u github.com/justjanne/powerline-go;
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------------install power line fonts------------------------------------------------------------------------
|
#----------------------------------------------------------install power line fonts------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ ! -d ~/fonts ]
|
if [ ! -d ~/fonts ]
|
||||||
then
|
then
|
||||||
while true; do
|
while true; do
|
||||||
read -p "do you want to install powerline fonts from https://github.com/powerline/fonts?" yn
|
read -p "do you want to install powerline fonts from 'https://github.com/powerline/fonts' ?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
git clone https://github.com/powerline/fonts ~/fonts;
|
git clone https://github.com/powerline/fonts ~/fonts;
|
||||||
@ -78,7 +121,7 @@ then
|
|||||||
./install.sh;
|
./install.sh;
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -90,13 +133,13 @@ fi
|
|||||||
if [ ! -d ~/.tmux/plugins/tpm ]
|
if [ ! -d ~/.tmux/plugins/tpm ]
|
||||||
then
|
then
|
||||||
while true; do
|
while true; do
|
||||||
read -p "do you want to install the tmux plugin manager from https://github.com/tmux-plugins/tpm" yn
|
read -p "do you want to install the tmux plugin manager from 'https://github.com/tmux-plugins/tpm' ?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm;
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm;
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -105,16 +148,26 @@ fi
|
|||||||
|
|
||||||
#----------------------------------------------------------see if Vundle has been cloned yet and do so-----------------------------------------------------
|
#----------------------------------------------------------see if Vundle has been cloned yet and do so-----------------------------------------------------
|
||||||
|
|
||||||
if [ ! -d ~/.vim ]
|
if [ ! -d ~/.vim/bundle ]
|
||||||
then
|
then
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Do you want to install the vim plugins now?" yn
|
read -p "do you want to install the Vundle plugin manager for vim from https://github.com/VundleVim/Vundle.vim.git?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) vim +PluginInstall +qall; break;;
|
[Yy]* )
|
||||||
[Nn]* ) exit;;
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||||
|
# ask to install plugins after vundle installed
|
||||||
|
while true; do
|
||||||
|
read -p "Do you want to install the vim plugins now?" yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]* ) vim +PluginInstall +qall; break;;
|
||||||
|
[Nn]* ) break;;
|
||||||
|
* ) echo "Please answer yes or no.";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
break;;
|
||||||
|
[Nn]* )
|
||||||
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
echo "you may need to run vim and execute :PluginInstall to sync packages with the new .vimrc, or \"vim +PluginInstall +qall\" from the command line"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user