Last active
September 19, 2018 01:43
-
-
Save dmamills/56d02e9535d0ad22afa34e5a33f2e056 to your computer and use it in GitHub Desktop.
dotbois
This file contains hidden or 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 nu | |
set paste | |
syntax on | |
colorscheme monokai | |
filetype on | |
" tabs n' stuffs | |
set expandtab | |
set smarttab | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
" files/backups | |
set nobackup | |
set noswapfile | |
set nowb | |
" pathogen | |
execute pathogen#infect() | |
" import plugins | |
"set runtimepath^=~/.vim/bundle/ctrlp.vim | |
"set runtimepath^=~/.vim/bundle/nerdtree | |
"set runtimepath^=~/.vim/bundle/vim-cpp-enhanced-highlight | |
" set leader | |
let mapleader="," | |
let maplocalleader = "," | |
" quick save | |
nnoremap <leader>w :w<CR> | |
nnoremap <leader>bd :bd<CR> | |
nnoremap <leader>l :set list<CR> | |
nnoremap <C-f> :CtrlP<CR> | |
" space / question mark search | |
map <space> / | |
map <c-space> ? | |
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' | |
let g:cpp_class_scope_highligh = 1 | |
let g:cpp_member_variable_highlight = 1 | |
let g:cpp_class_decl_highlight = 1 | |
let g:syntastic_cpp_checkers = ['syntastic-checkers-cpp'] | |
" quick open nerdtree | |
nnoremap <leader>nn :NERDTreeToggle<CR> |
This file contains hidden or 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
export ZSH=/Users/ccbb/.oh-my-zsh | |
ZSH_THEME="ccbb" | |
DISABLE_AUTO_UPDATE="true" | |
ENABLE_CORRECTION="false" | |
#plugins=(git,node,npm) | |
plugins=() | |
source $ZSH/oh-my-zsh.sh | |
export LANG=en_US.UTF-8 | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
fi | |
# OSX Enable/Disable Wifi | |
alias wifion="networksetup -setairportpower en0 on" | |
alias wifioff="networksetup -setairportpower en0 off" | |
alias wifistatus="networksetup -getairportpower en0" | |
function toggleWifi() { | |
if [[ $(wifistatus) == "Wi-Fi Power (en0): On" ]]; then | |
wifioff | |
print -P "%BDisabled Wifi.%b" | |
else | |
wifion | |
print -P "%BEnabled Wifi.%b" | |
fi | |
} | |
fancy-ctrl-z () { | |
if [[ $#BUFFER -eq 0 ]]; then | |
BUFFER="fg" | |
zle accept-line | |
else | |
zle push-input | |
zle clear-scream | |
fi | |
} | |
zle -N fancy-ctrl-z | |
bindkey '^Z' fancy-ctrl-z | |
export SSH_KEY_PATH="~/.ssh/rsa_id" | |
alias resource="source ~/.zshrc" | |
alias gs="git status" | |
alias gd="git diff" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm use v8 > /dev/null |
This file contains hidden or 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
unbind C-b | |
set -g prefix C-a | |
set -g default-terminal screen-256color | |
set -g aggressive-resize on | |
set-option -g base-index 1 | |
set-window-option -g pane-base-index 1 | |
#set-window-option -g utf8 on | |
bind | split-window -h | |
bind _ split-window -v | |
set -g status-bg white | |
set -g status-fg black | |
set -g status-left '#[bg=cyan,fg=black] 👽 #S ' | |
set -g status-right '#[bg=cyan, fg=black] #(whoami) ' | |
set-window-option -g window-status-current-format '#[bg=black,fg=white][👉 #W ]' | |
set-window-option -g window-status-format '#[bg=white,fg=black][ #W ]' | |
bind r source-file ~/.tmux.conf \; display-message " Config reloaded..". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment