Updates git functions, vimrc, etc.

This commit is contained in:
William Carroll 2016-12-19 20:53:45 -05:00
parent 17f7e0c453
commit 9c8ffdb504
8 changed files with 62 additions and 18 deletions

View file

@ -1,5 +1,4 @@
ack ack
arpack
autojump autojump
bash-completion bash-completion
bdw-gc bdw-gc
@ -30,14 +29,12 @@ giflib
gl2ps gl2ps
glib glib
global global
glpk
gmp gmp
gnu-sed gnu-sed
gnupg gnupg
gnuplot gnuplot
go go
graphicsmagick graphicsmagick
hdf5
httpie httpie
imagemagick imagemagick
isl isl
@ -56,11 +53,9 @@ libyaml
little-cms2 little-cms2
lua lua
macvim macvim
metis
mpfr mpfr
nethogs nethogs
newsbeuter newsbeuter
octave
oniguruma oniguruma
openssl openssl
par par
@ -76,8 +71,6 @@ pup
pyqt5 pyqt5
python python
python3 python3
qhull
qrupdate
qscintilla2 qscintilla2
qt5 qt5
readline readline
@ -88,15 +81,12 @@ sassc
shc shc
sip sip
sqlite sqlite
suite-sparse
szip szip
tbb tbb
texinfo texinfo
tig tig
tmux tmux
transfig
tree tree
veclibfort
vim vim
w3m w3m
webp webp

View file

@ -77,6 +77,10 @@ Plugin 'neomake/neomake'
Plugin 'flazz/vim-colorschemes' Plugin 'flazz/vim-colorschemes'
" Dash integration (macOS only)
Plugin 'rizzatti/dash.vim'
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required
" Put your non-Plugin stuff after this line " Put your non-Plugin stuff after this line
@ -101,6 +105,10 @@ let g:neomake_elixir_credo_maker = {
\ } \ }
" Alchemist settings
let g:alchemist#elixir_erlang_src = '/usr/local/share/src'
" Airline Settings " Airline Settings
" Enables the list of buffers. " Enables the list of buffers.
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
@ -130,7 +138,6 @@ nmap <F8> :8b<CR>
nmap <F9> :9b<CR> nmap <F9> :9b<CR>
" It's the twenty-first century...no swaps. " It's the twenty-first century...no swaps.
set noswapfile set noswapfile
@ -186,6 +193,14 @@ vnoremap <C-/> gc
let mapleader = " " let mapleader = " "
" Lookup Dash word under cursor in Dash
nnoremap <leader>j :Dash<CR>
" Save shortcut
nnoremap <C-s> :w<CR>
" Switch to MRU'd buffer " Switch to MRU'd buffer
nnoremap <leader><leader> <C-^> nnoremap <leader><leader> <C-^>
@ -309,6 +324,8 @@ set background=dark
syntax enable syntax enable
colorscheme hybrid colorscheme hybrid
set termguicolors
set history=1000 set history=1000
set undolevels=1000 set undolevels=1000

View file

@ -3,6 +3,11 @@ export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/go/bin:/usr/loca
# make vim the default editor for commit messages etc # make vim the default editor for commit messages etc
export EDITOR=$(which vim) export EDITOR=$(which vim)
# Adds a newline after the prompt to increase linespace for commands.
PS1="${PS1}
"
echo "Welcome back, $USER" echo "Welcome back, $USER"
# display the space available on each mounted Volume # display the space available on each mounted Volume

View file

@ -0,0 +1,3 @@
tmux-256color-italic|tmux with 256 colors and italic,
sitm=\ePtmux;\e\E[3m\e\\, ritm=\ePtmux;\e\E[23m\e\\,
use=screen-256color,

View file

@ -60,7 +60,7 @@ function wgjira {
# wgcheckout combined with a fuzzy search # wgcheckout combined with a fuzzy search
function wgfcheckout { function wgfcheckout {
branchname=$(trim $(git branch | fzf)) branchname=$(trim $(git branch | fzf-tmux))
[ ! -z "$branchname" ] && wgcheckout "$branchname" || return [ ! -z "$branchname" ] && wgcheckout "$branchname" || return
} }

View file

@ -1,12 +1,12 @@
# fuzzily-find-file # fuzzily-find-file
function wgff { function wgff {
echo $(find . -type f | fzf) echo $(find . -type f | fzf-tmux)
} }
# fuzzily-find-branch # fuzzily-find-branch
function wgfb { function wgfb {
echo $(git branch -a | fzf) echo $(git branch -a | fzf-tmux)
} }
@ -28,13 +28,13 @@ function wspcheck {
# fuzzily search through dirs stack # fuzzily search through dirs stack
function wfd { function wfd {
dir=$(dirname $(fzf)) && pushd "$dir" >/dev/null dir=$(dirname $(fzf-tmux)) && pushd "$dir" >/dev/null
} }
# pushd into a directory on your dirs stack # pushd into a directory on your dirs stack
function wpushd { function wpushd {
dir="$(dirs | tr ' ' '\n' | fzf)" && pushd "$dir" dir="$(dirs | tr ' ' '\n' | fzf-tmux)" && pushd "$dir"
} }

View file

@ -13,10 +13,10 @@ function vfzopen() {
if [ ! -z "$exclude_dirs" ]; then if [ ! -z "$exclude_dirs" ]; then
filename=$(find . -type f -name "$filetype" | \ filename=$(find . -type f -name "$filetype" | \
xargs grep -l "$search_query" | fzf) xargs grep -l "$search_query" | fzf-tmux)
else else
filename=$(find . -type f -name "$filetype" -not -path "./${exclude_dir}/*" \ filename=$(find . -type f -name "$filetype" -not -path "./${exclude_dir}/*" \
| xargs grep -l "$search_query" | fzf) | xargs grep -l "$search_query" | fzf-tmux)
fi fi

29
tmux-256color-italic.ti Normal file
View file

@ -0,0 +1,29 @@
# Reconstructed via infocmp from file: /Users/wpcarro/.terminfo/74/tmux-256color-italic
tmux-256color-italic|tmux with 256 colors and italic,
am, km, mir, msgr, xenl,
colors#256, cols#80, it#8, lines#24, ncv#3, pairs#32767,
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=\177, kcbt=\E[Z,
kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
nel=\EE, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
ritm=\EPtmux;\E\E[23m\E\\, rmacs=^O, rmcup=\E[?1049l,
rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m,
rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
sgr0=\E[m\017, sitm=\EPtmux;\E\E[3m\E\\, smacs=^N,
smcup=\E[?1049h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[3m,
smul=\E[4m, tbc=\E[3g,