diff --git a/.bashrc b/.bashrc index ea7e3f7..313e2fc 100644 --- a/.bashrc +++ b/.bashrc @@ -91,7 +91,8 @@ fi alias ll='ls -alFh' alias la='ls -A' alias l='ls -CF' -alias lb='lsblk -o+FSAVAIL,FSUSED,FSUSE%,MODEL,PARTTYPENAME,STATE' +#alias lb='lsblk -o+FSAVAIL,FSUSED,FSUSE%,MODEL,PARTTYPENAME,STATE' +alias lb='lsblk -o+FSTYPE,FSAVAIL,FSUSED,FSUSE%,MODEL' alias opg="lsof 2>/dev/null +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'" alias osw="lsof 2>/dev/null +D . | awk '\$NF ~ /swp$/ {print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'" alias xpg="lsof 2>/dev/null +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f" @@ -102,6 +103,7 @@ alias mns='fzf | xargs -I {} sqlcmd.exe -S usmidsql01 -i {}' alias nv='~/nvim-linux64/bin/nvim' alias gs='git status' alias gd='git difftool' +alias gl="git log --graph" # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert diff --git a/.gitconfig b/.gitconfig index 9433a4a..77c9c7f 100644 --- a/.gitconfig +++ b/.gitconfig @@ -2,7 +2,7 @@ email = paul@hptrow.me name = Paul Trowbridge [core] - autocrlf = false + autocrlf = true editor = vim [push] default = simple @@ -18,5 +18,7 @@ directory = /var/www/kimai2 directory = /var/www/html/resume/ directory = /var/www/html/resume + directory = /opt/forecast_api/ + directory = /opt/forecast_api [pull] rebase = false diff --git a/.psqlrc b/.psqlrc index 6fe6233..666c846 100644 --- a/.psqlrc +++ b/.psqlrc @@ -1,4 +1,4 @@ -- Switch pagers with :x and :xx commands \set x '\\setenv PAGER ''less -S''' \set xx '\\setenv PAGER \'pspg -bX --no-mouse\'' -\timing +\timing on diff --git a/.tmux.conf b/.tmux.conf index 7ce833e..b486e1d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -29,3 +29,4 @@ set -g @themepack 'powerline/default/cyan' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' + diff --git a/.vimrc b/.vimrc index 826cafe..91c0894 100644 --- a/.vimrc +++ b/.vimrc @@ -9,7 +9,7 @@ Plugin 'gmarik/Vundle.vim' Plugin 'vim-airline/vim-airline' Plugin 'kien/ctrlp.vim' Plugin 'scrooloose/nerdtree' -Plugin 'edkolev/tmuxline.vim' +"Plugin 'edkolev/tmuxline.vim' Plugin 'vim-airline/vim-airline-themes' Plugin 'leafgarland/typescript-vim' Plugin 'peitalin/vim-jsx-typescript' @@ -66,9 +66,24 @@ set mouse=a set visualbell set t_vb= nnoremap \\ :noh " Clear higlighting +set nowrap "nnoremap :noh " Resize windows nnoremap 5+ nnoremap 5- nnoremap 10> nnoremap 10< +"----------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 cc :call CommentOutUnselectedLines()