Last active
August 29, 2015 14:06
-
-
Save iamedu/ca2915e441f22cd21b52 to your computer and use it in GitHub Desktop.
dotfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setw -g utf8 on | |
set-option -g status-utf8 on | |
set -g default-command "reattach-to-user-namespace -l /bin/zsh" | |
# Set prefix command to Ctrl-a | |
set -g prefix C-a | |
unbind C-b | |
# Reduce tmux delay for more responsiveness | |
set -sg escape-time 1 | |
# Window and pane index count starts in 1 rather tan 0 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Reload configuration | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Binding to allow sending the prefix combination | |
bind C-a send-prefix | |
# Dividers | |
bind | split-window -h | |
bind - split-window -v | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind H resize-pane -L 5 | |
bind J resize-pane -D 5 | |
bind K resize-pane -U 5 | |
bind L resize-pane -R 5 | |
# Allow mouse | |
set -g mode-mouse off | |
set -g mouse-select-pane off | |
set -g mouse-resize-pane off | |
set -g mouse-select-window off | |
# Set terminal colors | |
set -g default-terminal "screen-256color" | |
# TMux coloring | |
set -g status-fg white | |
set -g status-bg black | |
setw -g window-status-fg cyan | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg red | |
setw -g window-status-current-attr bright | |
set -g pane-border-fg green | |
set -g pane-border-bg black | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg yellow | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
# Status bar customization | |
set -g status-utf8 on | |
set -g status-interval 60 | |
set -g status-justify centre | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green]#S #[fg=yellow]#I #[fg=cyan]#P" | |
set -g status-right "#[fg=cyan]%d %b %R" | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Remapping Copy mode keys to be more vim-like | |
setw -g mode-keys vi | |
unbind [ | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
# Avoid renaming windows | |
setw -g allow-rename off | |
# vim integration | |
# Smart pane switching with awareness of vim splits | |
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys C-h) || tmux select-pane -L" | |
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys C-j) || tmux select-pane -D" | |
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys C-k) || tmux select-pane -U" | |
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys C-l) || tmux select-pane -R" | |
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-fireplace' | |
Plugin 'tpope/vim-classpath' | |
Plugin 'guns/vim-clojure-static' | |
Plugin 'guns/vim-clojure-highlight' | |
Plugin 'kien/rainbow_parentheses.vim' | |
" github | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'Lokaltog/vim-easymotion' | |
Plugin 'derekwyatt/vim-scala' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'hallison/vim-markdown' | |
Plugin 'tomtom/tcomment_vim' | |
Plugin 'lukerandall/haskellmode-vim' | |
Plugin 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'honza/vim-snippets' | |
Plugin 'garbas/vim-snipmate' | |
Plugin 'tpope/vim-rails' | |
Plugin 'tpope/vim-bundler' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'closetag.vim' | |
" Prolog | |
Plugin 'msteinert/vim-prolog' | |
" Airline | |
Plugin 'bling/vim-airline' | |
Plugin 'kien/ctrlp.vim' | |
" Unite | |
Plugin 'Shougo/vimproc.vim' | |
Plugin 'Shougo/unite.vim' | |
Plugin 'majutsushi/tagbar' | |
" vim-scripts repos | |
Plugin 'matchit.zip' | |
Plugin 'L9' | |
Plugin 'csv.vim' | |
Plugin 'taglist.vim' | |
" Lisp | |
Plugin 'iamedu/slimv' | |
" ... | |
Plugin 'dhruvasagar/vim-table-mode' | |
Plugin 'sickill/vim-monokai' | |
Plugin 'christoomey/vim-tmux-navigator' | |
Plugin 'terryma/vim-multiple-cursors' | |
Plugin 'kchmck/vim-coffee-script' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
syntax enable | |
colorscheme monokai | |
set number | |
set wildmenu | |
" Give a shortcut key to NERD Tree | |
map <F3> :NERDTreeToggle<CR> | |
" change the mapleader from \ to , | |
let mapleader="," | |
let g:lisp_rainbow=1 | |
let g:paredit_electric_return=1 | |
let g:slimv_disable_clojure=1 | |
"Tabs | |
set ai | |
"Search | |
set hlsearch | |
"Change options | |
set cpoptions+=ces$ | |
" set virtualedit=block,insert | |
set nobackup | |
set noswapfile | |
set stl=%f\ %m\ %r%{fugitive#statusline()}\ Line:%l/%L[%p%%]\ Col:%v\ Buf:#%n\ [%b][0x%B] | |
set laststatus=2 | |
set vb | |
if &t_Co > 2 || has("gui_running") | |
" switch syntax highlighting on, when the terminal has colors | |
syntax on | |
endif | |
set pastetoggle=<F2> | |
" Identation | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" Parentheses | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
let g:rbpt_colorpairs = [ | |
\ ['brown', 'RoyalBlue3'], | |
\ ['Darkblue', 'SeaGreen3'], | |
\ ['darkgray', 'DarkOrchid3'], | |
\ ['darkgreen', 'firebrick3'], | |
\ ['darkcyan', 'RoyalBlue3'], | |
\ ['darkred', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['brown', 'firebrick3'], | |
\ ['gray', 'RoyalBlue3'], | |
\ ['yellow', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['Darkblue', 'firebrick3'], | |
\ ['darkgreen', 'RoyalBlue3'], | |
\ ['darkcyan', 'SeaGreen3'], | |
\ ['darkred', 'DarkOrchid3'], | |
\ ['red', 'firebrick3'], | |
\ ] | |
" Unite.vim | |
" Use ag for search | |
if executable('ag') | |
let g:unite_source_grep_command = 'ag' | |
let g:unite_source_grep_default_opts = '--nogroup --nocolor --column' | |
let g:unite_source_grep_recursive_opt = '' | |
endif | |
let g:unite_source_history_yank_enable = 1 | |
nnoremap <space>/ :Unite grep:.<cr> | |
nnoremap <space>s :Unite -quick-match buffer<cr> | |
nnoremap <space>y :Unite history/yank<cr> | |
autocmd FileType clojure nnoremap <C-e> :Eval<CR> | |
autocmd FileType clojure nnoremap E :%Eval<CR> | |
nnoremap <Leader>. :CtrlPTag<cr> | |
nnoremap <silent> <Leader>b :TagbarToggle<CR> | |
autocmd FileType cpp set tabstop=4|set shiftwidth=4 | |
autocmd FileType xml set tabstop=4|set shiftwidth=4 | |
autocmd FileType java set tabstop=4|set shiftwidth=4 | |
autocmd FileType groovy set tabstop=2|set shiftwidth=2 | |
autocmd FileType ruby set tabstop=2|set shiftwidth=2 | |
autocmd FileType eruby set tabstop=2|set shiftwidth=2 | |
autocmd FileType javascript set tabstop=2|set shiftwidth=2 | |
au BufEnter *.edn set filetype=clojure | |
au BufEnter *.fleet set filetype=html | |
au Filetype html,xml,xsl,fleet source ~/.vim/bundle/closetag.vim/plugin/closetag.vim | |
set wildignore+=*.class,.git,.hg,.svn,target/**,node_modules,**/components/**,target/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
HIST_STAMPS="yyyy-mm-dd" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git rvm vundle git autojump lein vi-mode osx nvm npm github tmux tmuxinator brew) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
export PATH="/Users/iamedu/.gvm/vertx/current/bin:/Users/iamedu/.gvm/springboot/current/bin:/Users/iamedu/.gvm/lazybones/current/bin:/Users/iamedu/.gvm/groovyserv/current/bin:/Users/iamedu/.gvm/groovy/current/bin:/Users/iamedu/.gvm/griffon/current/bin:/Users/iamedu/.gvm/grails/current/bin:/Users/iamedu/.gvm/gradle/current/bin:/Users/iamedu/.gvm/glide/current/bin:/Users/iamedu/.gvm/gaiden/current/bin:/Users/iamedu/.gvm/crash/current/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/bin:/usr/sbin:/sbin:/Users/iamedu/bin" | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
# export EDITOR='mvim' | |
export EDITOR='vim' | |
fi | |
if [ -n "$TMUX" ]; then | |
unset GVM_INIT | |
fi | |
function setjava() { | |
export JAVA_HOME=$(/usr/libexec/java_home -v $1) | |
} | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/dsa_id" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias rccl64='rlwrap ccl64' | |
alias rsbcl='rlwrap sbcl' | |
setjava 1.8.0 | |
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
export DOCKER_HOST=tcp://192.168.59.103:2375 | |
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!! | |
[[ -s "/Users/iamedu/.gvm/bin/gvm-init.sh" ]] && source "/Users/iamedu/.gvm/bin/gvm-init.sh" | |
source $(brew --prefix nvm)/nvm.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment