Skip to content

Instantly share code, notes, and snippets.

@staydecent
Last active December 20, 2015 04:59
Show Gist options
  • Save staydecent/6075361 to your computer and use it in GitHub Desktop.
Save staydecent/6075361 to your computer and use it in GitHub Desktop.
dotfiles
rename-session -t 0 work
selectp -t 0 # select the first (0) pane
splitw -v -p 66 -c ~/Development/ecquirex 'grunt watch:linux' # split it into 1/3
selectp -t 1 # select the new, second (1) pane
splitw -v -p 50 -c ~/Development/ecquirex # split it into two halves
selectp -t 0 # go back to the first pane
run-shell "$SHELL cd ~/Development/ecquirex"
# osx only
set-option -g default-command "reattach-to-user-namespace -l zsh"
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# vi mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# mouse
setw -g mode-mouse on
setw -g mouse-select-pane on
setw -g monitor-activity on
set -g visual-activity on
# Colours / look
set -g default-terminal "screen-256color"
set -g status-interval 30
set -g status-bg '#1A1D19'
set -g status-fg '#71787F'
set -g status-justify 'right'
set -g status-left-length 50
set -g status-right-length 0
set -g set-titles-string '(#pwd)'
setw -g automatic-rename on
setw -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F'
setw -g window-status-current-format '#[bg=default,fg=cyan,bold]#I#[bg=default,fg=cyan]:#[fg=white]#W#[fg=dim]#F'
set -g status-left "#(whoami):#S:#P"
set -g status-right ""
# initialize sessions
bind W source-file ~/.tmux/work
# other
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set nocompatible
set modelines=0
filetype off
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd BufWritePost *.coffee make " auto compile coffee
" au FileType javascript call JavaScriptFold()
" Tabs
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" Folds
set foldmethod=indent
set foldnestmax=4
"set foldlevelstart=1
"let javaScript_fold=1
" steve losh settings
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set number
set relativenumber
"set undofile
" steve losh search settings
nnoremap <leader>f :Ack
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
" steve losh line settings
set wrap
set textwidth=80
set formatoptions=qrn1
set colorcolumn=85
"set list
set listchars=
" steve losh mappings
nnoremap j gj
nnoremap k gk
nnoremap ; :
nnoremap <leader>ft Vatzf " HTML, fold tag
" Vundle starts here
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
" My bundles here:
Bundle 'scrooloose/syntastic'
Bundle 'ervandew/supertab'
Bundle 'kien/ctrlp.vim'
Bundle 'terryma/vim-multiple-cursors'
Bundle 'scrooloose/nerdtree'
Bundle 'marijnh/tern_for_vim'
Bundle 'scrooloose/nerdcommenter'
Bundle 'airblade/vim-gitgutter'
Bundle 'walm/jshint.vim'
Bundle 'jelera/vim-javascript-syntax'
Bundle 'altercation/vim-colors-solarized'
Bundle 'chriskempson/base16-vim'
Bundle 'mileszs/ack.vim'
Bundle 'kchmck/vim-coffee-script'
Bundle 'bling/vim-airline'
" ctrl-p settings
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'ra'
" nerdtree settings
map <C-b> :NERDTreeToggle<CR>
" statusline settings
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
" colorscheme settings
syntax enable
filetype plugin indent on
"set background=light
set background=dark
let g:solarized_termcolors=256
let base16colorspace=256
let g:airline_theme='solarized'
"colorscheme solarized
colorscheme base16-ocean
# Path to your oh-my-zsh configuration.
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"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Uncomment 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"
# 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)
plugins=(git brew npm bower virtualenvwrapper)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=:/usr/local/bin:/usr/local/share/npm/bin:/Users/aunger/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/aunger/.rvm/bin:$PATH
# Base16 Shell
BASE16_SCHEME="ocean"
BASE16_SHELL="$HOME/.config/base16-shell/base16-$BASE16_SCHEME.dark.sh"
[[ -s $BASE16_SHELL ]] && . $BASE16_SHELL
# editor
alias subl="$HOME/bin/subl"
export EDITOR="vim -c 'startinsert'"
alias tmux="TERM=screen-256color-bce tmux"
# python / virtualenv
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
# dev
export DASHFRONT=true
# mount the android file image
alias mountAndroid='hdiutil attach ~/local/android.dmg -mountpoint /Volumes/android'
# tasks
alias t='python /Users/aunger/bin/t/t.py --task-dir ~/Dropbox/Docs/ --list TODO.txt'
# greeting
echo 'Welcome, sir!'
t
[Configuration]
FontName=Source Code Pro Medium 9
MiscAlwaysShowTabs=FALSE
MiscBell=FALSE
MiscBordersDefault=TRUE
MiscCursorBlinks=FALSE
MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK
MiscDefaultGeometry=72x36
MiscInheritGeometry=FALSE
MiscMenubarDefault=TRUE
MiscMouseAutohide=FALSE
MiscToolbarDefault=FALSE
MiscConfirmClose=TRUE
MiscCycleTabs=TRUE
MiscTabCloseButtons=TRUE
MiscTabCloseMiddleClick=TRUE
MiscTabPosition=GTK_POS_TOP
MiscHighlightUrls=TRUE
BackgroundDarkness=0.900000
CommandLoginShell=TRUE
BackgroundMode=TERMINAL_BACKGROUND_TRANSPARENT
ScrollingBar=TERMINAL_SCROLLBAR_NONE
ColorCursor=#dd33dd00cc88
ColorForeground=#dd33dd00cc88
ColorBackground=#22dd22dd22dd
ColorPalette=#22dd22dd22dd;#ff22777777aa;#9999cccc9999;#ffffcccc6666;#66669999cccc;#cccc9999cccc;#6666cccccccc;#dd33dd00cc88;#774477336699;#ff22777777aa;#9999cccc9999;#ffffcccc6666;#66669999cccc;#cccc9999cccc;#6666cccccccc;#ff22ff00eecc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment