Using tmux plugins, switched to neovim, zsh env stuff, etc.

master
Dustin Swan 10 years ago
parent f819465110
commit f6e6c2402a

@ -1,16 +1,11 @@
# UGH
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Set the prefix to ^A
unbind C-b
set -g prefix C-a
bind a send-prefix
# I must be missing something.. why don't these work automatically?
bind C-n next-window
bind C-p previous-window
bind C-c new-window
bind C-d detach
bind C-a last-window
# Mouse!
set -g mode-mouse on
@ -18,46 +13,36 @@ set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Rebinding switching panes
bind-key Up select-pane -U
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key Right select-pane -R
bind C-a last-window
# basic settings
set-window-option -g mode-keys vi # vi key
set-option -g status-keys vi
set -g mode-keys vi
# Terminal Titles
set -g set-titles on
set -g set-titles-string "#H (#S)"
set -g default-terminal "screen-256color"
# Unicode
setw -g utf8 on
# Status
set -g status on
set -g status-utf8 on
# Powerline
# Mac
source '/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# Linux
source '/usr/share/tmux/powerline.conf'
# Centos..
source '/root/.local/lib/python2.6/site-packages/powerline/bindings/tmux/powerline.conf'
# Browse URLs
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
source "$HOME/.pyenv/versions/2.7.9/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
# Escape delay
set -s escape-time 0
set -s escape-time 1
# Open new windows in current directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'jbnicolai/tmux-urlview'
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'

20
vimrc

@ -2,7 +2,6 @@ set nocompatible
call plug#begin('~/.vim/plugged')
"Plug 'gmarik/Vundle.vim'
Plug 'sheerun/vim-polyglot'
Plug 'terryma/vim-multiple-cursors'
Plug 'szw/vim-dict'
@ -17,18 +16,19 @@ Plug 'tpope/vim-vinegar'
Plug 'tpope/vim-characterize'
Plug 'tpope/vim-jdaddy'
Plug 'tpope/vim-eunuch'
" Plug 'tpope/vim-unimpared'
"Plug 'tpope/vim-unimpared'
Plug 'mileszs/ack.vim'
Plug 'justinmk/vim-sneak'
Plug 'bkad/CamelCaseMotion'
Plug 'majutsushi/tagbar'
Plug 'scrooloose/syntastic'
Plug 'scrooloose/nerdcommenter'
Plug 'w0ng/vim-hybrid'
" Plug 'ervandew/supertab'
"Plug 'w0ng/vim-hybrid'
Plug 'sickill/vim-monokai'
"Plug 'ervandew/supertab'
Plug 'kien/ctrlp.vim'
Plug 'gregsexton/MatchTag'
" Plug 'kana/vim-smartinput'
"Plug 'kana/vim-smartinput'
Plug 'Raimondi/delimitMate'
Plug 'rstacruz/sparkup', {'rtp': 'vim/'}
Plug 'mbbill/undotree'
@ -62,6 +62,7 @@ Plug 'kien/rainbow_parentheses.vim'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'junegunn/goyo.vim'
Plug 'EinfachToll/DidYouMean'
Plug 'jceb/vim-orgmode'
call plug#end()
@ -149,9 +150,7 @@ if has("gui_running")
endif
" Colors
" colorscheme default
colorscheme hybrid
set background=dark
colorscheme monokai
" Tagbar
nnoremap <silent><leader>t :TagbarToggle <cr>
@ -272,3 +271,8 @@ endfunction
" Airline
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
" Powerline
" python from powerline.vim import setup as powerline_setup
" python powerline_setup()
" python del powerline_setup

34
zshrc

@ -7,14 +7,14 @@ export ZSH_THEME="minimal"
bindkey -e
alias vi=vim
alias vi=nvim
alias vim=nvim
alias l="ls -la"
alias tmux="tmux -2"
alias ta="tmux attach -d"
alias dustinswan="mosh dustinswan@dustinswan.org"
alias kill_offlineimap="ps aux | grep offlineimap | awk '{ print $2 }' | xargs kill -9"
alias e='emacsclient -a "" -t'
export EDITOR="emacsclient -a "" -t"
export EDITOR=nvim
export TERM="screen-256color"
export MOSH_TITLE_NOPREFIX=1
@ -37,16 +37,16 @@ alias er='rm -rf logs; unzip -o'
export PATH=$HOME/depot_tools:$PATH
export GYP_CROSSCOMPILE=1
export GYP_GENERATORS=ninja
# arm64
export GYP_DEFINES="OS=ios target_arch=arm64 target_subarch=arm64 build_with_chromium=0 include_tests=0 enable_video=0 clang_xcode=1 clang=1"
export GYP_GENERATOR_FLAGS="output_dir=out_ios64"
## arm64
#export GYP_DEFINES="OS=ios target_arch=arm64 target_subarch=arm64 build_with_chromium=0 include_tests=0 enable_video=0 clang_xcode=1 clang=1"
#export GYP_GENERATOR_FLAGS="output_dir=out_ios64"
# armv7
#export GYP_DEFINES="OS=ios target_arch=arm arm_version=7 build_with_chromium=0 include_tests=0 enable_video=0 clang_xcode=1 clang=1"
#export GYP_GENERATOR_FLAGS="output_dir=out_iosv7"
# export GYP_DEFINES="OS=ios target_arch=arm arm_version=7 build_with_chromium=0 include_tests=0 enable_video=0 clang_xcode=1 clang=1"
# export GYP_GENERATOR_FLAGS="output_dir=out_iosv7"
export PATH=/usr/texbin:$PATH # Basictex
export PATH=/usr/local/bin:/usr/local/sbin:$PATH # Homebrew
export PATH=/Applications/Postgres.app/Contents/MacOS/bin:$PATH
export PATH=/usr/local/share/python:$PATH
export PATH=$HOME/Library/Haskell/bin:$PATH
export PATH=~/.cabal/bin:$PATH
export PATH=$HOME/dotfiles/bin:$PATH
@ -55,8 +55,8 @@ export NODE_PATH=/usr/local/lib/node:/usr/local/share/npm/lib/node_modules
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages
# Nix
# . $HOME/.nix-profile/etc/profile.d/nix.sh
# export NIX_PATH=$HOME/nixpkgs:nixpkgs=$HOME/nixpkgs
. $HOME/.nix-profile/etc/profile.d/nix.sh
export NIX_PATH=nixpkgs=$HOME/nixpkgs
# Chruby
source /usr/local/share/chruby/chruby.sh
@ -67,8 +67,20 @@ source /usr/local/share/chruby/auto.sh
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# Keychain
eval `keychain --eval id_rsa`
# Tex
eval `/usr/libexec/path_helper -s`
powerline-daemon -q
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.history

Loading…
Cancel
Save