usmidsap01 current state
This commit is contained in:
parent
04ee4dc97c
commit
f13e6c0788
26
.bashrc
26
.bashrc
@ -91,6 +91,8 @@ fi
|
||||
alias ll='ls -alFh'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
#alias lb='lsblk -o+FSTYPE,FSAVAIL,FSUSED,FSUSE%,MODEL,UUID'
|
||||
alias lb='lsblk -o+FSTYPE,FSAVAIL,FSUSED,FSUSE%,MODEL'
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
@ -119,8 +121,7 @@ fi
|
||||
EDITOR=/usr/bin/vim.basic
|
||||
PAGER="less"
|
||||
LESS="-S"
|
||||
export PG="psql -U ptrowbridge -d ubm -p 54329 -h hptrow.me"
|
||||
export PGD="psql -U ptrowbridge -d ubm -p 54339 -h hptrow.me"
|
||||
export PG="psql -U ptrowbridge -d ubm -p 5432 -h 10.56.60.254"
|
||||
export PSQL_PAGER="pspg"
|
||||
|
||||
# GOPATH=$HOME/go
|
||||
@ -130,4 +131,25 @@ export PSQL_PAGER="pspg"
|
||||
# if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
|
||||
# PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||
# fi
|
||||
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
||||
GIT_PROMPT_ONLY_IN_REPO=1
|
||||
source $HOME/.bash-git-prompt/gitprompt.sh
|
||||
fi
|
||||
|
||||
export JAVA_HOME=/opt/jdk-19.0.1
|
||||
export PATH=$PATH:$JAVA_HOME/bin
|
||||
export PATH=$PATH:/opt/gradle/gradle-7.6/bin
|
||||
export RUNNER_PATH=/opt/runner/
|
||||
export DB2PW=qqqx53@048
|
||||
export PGPW=qqqx53!030
|
||||
|
||||
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
|
||||
|
||||
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 gl="git log --graph"
|
||||
|
@ -2,7 +2,7 @@
|
||||
email = paul@hptrow.me
|
||||
name = Paul Trowbridge
|
||||
[core]
|
||||
autocrlf = false
|
||||
autocrlf = true
|
||||
editor = vim
|
||||
[push]
|
||||
default = simple
|
||||
@ -14,3 +14,6 @@
|
||||
pretty = format:'%C(yellow)%h %Cred%ad %Cblue%an %Cgreen%d %Creset%s'
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
[safe]
|
||||
directory = /opt/forecast_api/
|
||||
directory = /opt/forecast_api
|
||||
|
1
.psqlrc
1
.psqlrc
@ -1,3 +1,4 @@
|
||||
-- Switch pagers with :x and :xx commands
|
||||
\set x '\\setenv PAGER ''less -S'''
|
||||
\set xx '\\setenv PAGER \'pspg -bX --no-mouse\''
|
||||
\timing on
|
||||
|
@ -9,6 +9,9 @@ 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 @tmux-themepack 'powerline/default/cyan'
|
||||
|
||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
|
24
.vimrc
24
.vimrc
@ -24,7 +24,8 @@ map <C-h> <C-W>h
|
||||
map <C-l> <C-W>l
|
||||
let NERDTreeShowHidden=1
|
||||
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||||
colorscheme desert
|
||||
"colorscheme ron
|
||||
colorscheme pablo
|
||||
syntax on
|
||||
set splitright
|
||||
set splitbelow
|
||||
@ -37,9 +38,9 @@ let g:netrw_altv = 1
|
||||
let g:netrw_winsize = 25
|
||||
"----airline tabs for buffers-------
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline_theme = 'dark'
|
||||
let g:tmuxline_powerline_separators = 0
|
||||
let g:airline_powerline_fonts = 0
|
||||
let g:airline_theme = 'sierra'
|
||||
let g:tmuxline_powerline_separators = 1
|
||||
let g:airline_powerline_fonts = 1
|
||||
let mapleader = ";"
|
||||
set showcmd
|
||||
map <Leader>a :bn<cr>
|
||||
@ -59,9 +60,24 @@ set mouse=a
|
||||
set visualbell
|
||||
set t_vb=
|
||||
nnoremap \\ :noh<cr> " Clear higlighting
|
||||
set nowrap
|
||||
"nnoremap <esc> :noh<return><esc>
|
||||
" Resize windows
|
||||
nnoremap <silent> <Up> 5<C-W>+
|
||||
nnoremap <silent> <Down> 5<C-W>-
|
||||
nnoremap <silent> <Right> 10<C-W>>
|
||||
nnoremap <silent> <Left> 10<C-W><
|
||||
"----------funcion to comment out every line except current---------------
|
||||
function! CommentOutUnselectedLines()
|
||||
let l:highlighted_lines = sort(getpos("'<")[1], getpos("'>")[1])
|
||||
let l:line_count = line("$")
|
||||
let l:comment_char = "--"
|
||||
|
||||
for l:line_number in range(1, l:line_count)
|
||||
if index(l:highlighted_lines, l:line_number) == -1
|
||||
execute l:line_number . "s/^/" . l:comment_char . "/"
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
nnoremap <Leader>cc :call CommentOutUnselectedLines()<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user