Skip to content

Instantly share code, notes, and snippets.

@LongLiveCHIEF
Last active August 29, 2015 14:23
Show Gist options
  • Save LongLiveCHIEF/c6e016c584744be7e4e9 to your computer and use it in GitHub Desktop.
Save LongLiveCHIEF/c6e016c584744be7e4e9 to your computer and use it in GitHub Desktop.
Shell Setup
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-shell /bin/zsh
set-option -g default-terminal "xterm"
set-window-option -g mode-keys vi
set-option -g mouse-select-window on
set-option -g allow-rename off
set-window-option -g mode-mouse on
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# foarce a reload of the config
unbind r
bind r source-file ~/.tmux.conf
set nocompatible " this MUST be first
"_______________________ ok to edit below_____________________
set number " enables line numbering
set tabstop=4 " number of visual spaces in tab
set softtabstop=4 " number of spaces in tab when editing
set wildmenu " autocomplete for command menu
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set showmatch " highlight matching parens, etc...
set nobackup " have .git
set noswapfile " have .git
filetype plugin indent on " indent rules smart based on filetype
"================== SEARCHING==================================
set hlsearch " highlight matches
set incsearch " show matches asynchronously
" clear highlighted search matches when searching is done by hitting <leader>SPACE
nnoremap <leader><space> :nohlsearch<CR>
"================= FOLDING ====================================
set foldenable " enable folding
set foldlevelstart=7 " open most folds by default
set foldnestmax=10 " 10 nested fold max
nnoremap <space> za " space open/closes folds
set foldmethod=indent " fold based on indent level
"================= COLORS & Formatting==========================
if &t_Co > 2 || has("gui_running")
" switch syntax highlighting on, when the terminal has colors
syntax on
endif
set pastetoggle=<leader>p
autocmd BufNewFile,BufRead *.md set filetype=markdown
"=============== MISC ========================================
cmap w!! w !sudo tee % >/dev/null " let's you use sudo to edit a file after you opened it (for protected admmin files)
" change the mapleader from \ to ,
let mapleader=","
"=============== PLUGINS ======================================
"----------------Pathogen---------------------------------------
execute pathogen#infect()
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.space = "\ua0"
let g:airline_powerline_fonts = 1
set laststatus=2 " allow airline to show up
"----------------Vundle-----------------------------------------
# Path to your oh-my-zsh installation.
export 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="agnoster"
# 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="mm/dd/yyyy"
# 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 osx atom tmux)
# User configuration
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/apache-2.4.9/bin:/usr/local/bin/npm:/usr/local/bin/phantomjs-1.9.7-macosx/bin:/opt/X11/bin:/usr/local/git/bin"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
# 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'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
DEFAULT_USER=user
# 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`.
alias ll='ls -la'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment