Skip to content

Instantly share code, notes, and snippets.

@Jared-Prime
Last active March 24, 2017 13:31
Show Gist options
  • Save Jared-Prime/5e1b8f4292ec98b852baa4c38a4b1e44 to your computer and use it in GitHub Desktop.
Save Jared-Prime/5e1b8f4292ec98b852baa4c38a4b1e44 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# BASH TIPS -
# http://kvz.io/blog/2013/11/21/bash-best-practices/
set -o errexit
set -o nounset
set -o xtrace
# TMUX CONFIG
echo "# see http://www.muddygoat.org/articles/vim-in-tmux
set-option -g default-shell /usr/bin/bash
set -g default-terminal \"screen-256color\"
set -g history-limit 5000
set -sg escape-time 0
bind r source-file ~/.tmux.conf" > $HOME/.tmux.conf
git clone git://github.com/drmad/tmux-git.git $HOME/.tmux-git
echo "if [[ \$TMUX ]]; then source ~/.tmux-git/tmux-git.sh; fi" >> $HOME/.bashrc
# GIT CONFIG
echo "[core]
user = Jared-Prime
email = [email protected]
editor = vim
excludesfile = ~/.gitignore
[merge]
tool=vimdiff
[user]
name = Jared Davis
email = [email protected]
[filter \"lfs\"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true" > $HOME/.gitconfig
echo "*.DS_Store
*.swp
tags
tmp/" > $HOME/.gitignore
# VIM CONFIC - VIMRC
echo "syntax on
filetype plugin indent on
colorscheme vividchalk
set background=dark
set anti enc=utf-8
set guifont=Source\ Code\ Pro:h18
set colorcolumn=80
:hi ColorColumn ctermbg=lightblue guibg=lightblue
set shell=zsh
set nocompatible
set number
set nowrap
set showmode
set smartcase
set smarttab
set smartindent
set autoindent
set softtabstop=2
set shiftwidth=2
set expandtab
set incsearch
set mouse=a
set history=1000
set clipboard=unnamedplus,autoselect
set completeopt=menuone,menu,longest
set wildignore+=*\\\\tmp\\\\*,*.swp,*.swo,*.zip,.git,.cabal-sandbox
set wildmode=longest,list,full
set wildmenu
set completeopt+=longest
set t_Co=256
set cmdheight=1
nnoremap <Leader>nt :NERDTreeToggle<CR>
\"\" Haskell Syntax and Linting
map <Leader>s :SyntasticToggleMode<CR>
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 1
map <silent> <Leader>t :CtrlP()<CR>
noremap <leader>b<space> :CtrlPBuffer<cr>
let g:ctrlp_custom_ignore = '\v[\/]dist$'
execute pathogen#infect()" > $HOME/.vimrc
# VIM CONFIG - PLUGINS
mkdir -p $HOME/.vim/{autoload,bundle,colors}
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
git clone https://github.com/mileszs/ack.vim.git $HOME/.vim/bundle/ack.vim
git clone https://github.com/kien/ctrlp.vim.git $HOME/.vim/bundle/ctrlp.vim
git clone https://github.com/scrooloose/nerdtree.git $HOME/.vim/bundle/nerdtree.vim
git clone https://github.com/vim-syntastic/syntastic.git $HOME/.vim/bundle/syntastic.vim
git clone https://github.com/fatih/vim-go.git $HOME/.vim/bundle/vim-go
# VIM CONFIG - COLOR SCHEME
curl https://raw.githubusercontent.com/tpope/vim-vividchalk/master/colors/vividchalk.vim > $HOME/.vim/colors/vividchalk.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment