Last active
October 14, 2015 13:56
-
-
Save jwkicklighter/04912bc7d7913d076cdd to your computer and use it in GitHub Desktop.
Dotfiles
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
| "syntax :on | |
| " | |
| color desert | |
| set autoindent | |
| set number | |
| set tabstop=3 | |
| set sw=3 | |
| set gfn=Droid\ Sans\ Mono:h14 | |
| filetype indent plugin on | |
| " | |
| set incsearch | |
| set ignorecase | |
| set smartcase | |
| set scrolloff=2 | |
| " | |
| " Map Buttons for Tab Control | |
| nmap <C-S-tab> :tabprevious<cr> | |
| nmap <C-tab> :tabnext<cr> | |
| imap <C-S-tab> <ESC>:tabprevious<cr>i | |
| imap <C-tab> <ESC>:tabnext<cr>i | |
| nmap <C-t> :tabnew<cr> | |
| imap <C-t> <ESC>:tabnew<cr>i | |
| map <C-w> :tabclose<cr> | |
| " | |
| imap hh <ESC> | |
| " | |
| " Plugins | |
| " https://github.com/Townk/vim-autoclose | |
| if filereadable('.vim/autoclose.vim') | |
| source ~/.vim/autoclose.vim | |
| elseif filereadable('_vim/autoclose.vim') | |
| source ~/_vim/autoclose.vim | |
| endif |
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=$HOME/.oh-my-zsh | |
| export DOTFILES=$HOME/dotfiles | |
| export ZSH_PLUGINS=$DOTFILES/zsh-plugins | |
| # Clone this theme: git@github.com:jwkicklighter/oh-my-zsh-powerline-theme.git | |
| # Copy powerline.zsh-theme into .oh-my-zsh/themes/ (install_in_omz.sh should do this) | |
| # Install and set terminal to 1 of these fonts: git@github.com:powerline/fonts.git | |
| # (I use "12pt Meslo LG M Regular for Powerline" for Regular & Non-ASCII in iTerm 2) | |
| autoload -U add-zsh-hook | |
| ZSH_THEME="powerline" | |
| # Custom Plugins (clone both into .oh-my-zsh/custom/plugins/[plugin name]) | |
| # git@github.com:yonchu/grunt-zsh-completion.git Completes from Gruntfile.js | |
| # git@github.com:zsh-users/zsh-history-substring-search.git Searches history using typed text | |
| # git://github.com/zsh-users/zsh-syntax-highlighting.git Highlights terminal commands | |
| plugins=(osx git git-flow git-extras github ruby rvm rails sublime wd bundler cap docker gem node npm bower gradle brew grunt zsh-syntax-highlighting brew zsh-history-substring-search) | |
| source $ZSH/oh-my-zsh.sh | |
| # User configuration | |
| # 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" | |
| # Misc Aliases | |
| alias ll='ls -alF' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| alias c='clear' | |
| alias szshrc='source $HOME/.zshrc' | |
| alias td='wd' | |
| # Mac | |
| cleanopenwith='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"' | |
| # Grunt | |
| alias grserve='grunt server' | |
| # Git | |
| alias gs='git status' | |
| alias gf='git fetch' | |
| # Sublime Text | |
| alias st.='st .' | |
| # Android | |
| alias androiddevicemonitor='$HOME/dev/android-sdk-macosx/tools/monitor' | |
| alias adb-net='adb tcpip 5555' | |
| alias adb-n6='adb connect 192.168.1.44' | |
| alias adb-usb='adb usb' | |
| # Docker | |
| alias b2d='boot2docker' | |
| export DOCKER_HOST=tcp://192.168.59.103:2375 | |
| # ALL the bins! | |
| export PATH="/usr/local/bin":$PATH | |
| export PATH=$PATH:"/usr/local/sbin" | |
| export PATH=$PATH:"/usr/bin" | |
| export PATH=$PATH:"/usr/sbin" | |
| export PATH=$PATH:"/bin" | |
| export PATH=$PATH:"/sbin" | |
| export PATH=$PATH:"$HOME/bin" | |
| export PATH=$PATH:"$HOME/bin/sbt" | |
| #Mono | |
| export MONO_GAC_PREFIX="/usr/local" | |
| # NPM | |
| export PATH=$PATH:"/usr/local/share/npm/bin" | |
| # Ruby | |
| export PATH=$PATH:"$HOME/.rvm/bin" | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
| zmodload zsh/terminfo | |
| bindkey "$terminfo[kcuu1]" history-substring-search-up | |
| bindkey "$terminfo[kcud1]" history-substring-search-down |
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
| # Check for Homebrew, | |
| # Install if we don't have it | |
| if test ! $(which brew); then | |
| echo "Installing homebrew..." | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| fi | |
| # Update homebrew recipes | |
| echo "updating homebrew..." | |
| brew update | |
| binaries=( | |
| python | |
| sshfs | |
| trash | |
| node | |
| git | |
| git-flow | |
| ruby | |
| composer | |
| htop-osx | |
| gcc | |
| android-sdk | |
| ansible | |
| ) | |
| echo "installing binaries..." | |
| brew install ${binaries[@]} | |
| echo "installing cask..." | |
| brew install caskroom/cask/brew-cask | |
| # Apps | |
| apps=( | |
| dropbox | |
| google-chrome | |
| google-drive | |
| slack | |
| firefox | |
| spotify | |
| vagrant | |
| flash | |
| iterm2 | |
| sublime-text3 | |
| virtualbox | |
| vlc | |
| transmission | |
| android-studio | |
| caffeine | |
| filezilla | |
| sourcetree | |
| skype | |
| ) | |
| # Install apps to /Applications | |
| echo "installing apps..." | |
| brew cask install --appdir="/Applications" ${apps[@]} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure that oh-my-zsh is installed as step 1. Install the theme, fonts, and plugins from the .zshrc comments, or change the theme and remove the custom plugins.