Last active
September 4, 2015 17:21
-
-
Save serradura/50cdc91cea56aaf9f57a to your computer and use it in GitHub Desktop.
Dotfiles for standard stack setup
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
[user] | |
name = YOUR NAME | |
email = [email protected] | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[alias] | |
ci = commit | |
co = checkout | |
br = branch | |
st = status | |
sts = status --short | |
slog = log --oneline --decorate | |
glog = log --oneline --decorate --graph | |
[core] | |
excludesfile = ~/.gitignore |
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
# chmod +x OSX-setup.sh | |
if ! type "git" > /dev/null; then | |
echo "Installing git" | |
brew install git | |
fi | |
if [ -d "~/.oh-my-zsh" ]; then | |
# Installing oh my zsh | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
fi | |
if ! type "ctags" > /dev/null; then | |
echo "Installing ctags" | |
brew install ctags | |
fi | |
if ! type "rvm" > /dev/null; then | |
echo "Installing rvm" | |
curl -sSL https://get.rvm.io | bash -s stable --ruby | |
rvm requirements | |
fi | |
if ! type "gem" > /dev/null; then | |
gem install gem-ctags | |
gem ctags | |
gem install gem-browse | |
fi | |
if [ -d "~/.janus" ]; then | |
# Installing janus vim distribution | |
curl -Lo- https://bit.ly/janus-bootstrap | bash | |
git clone [email protected]:vim-ruby/vim-ruby.git ~/.janus/vim-ruby | |
git clone [email protected]:tpope/vim-endwise.git ~/.janus/vim-endwise | |
git clone [email protected]:tpope/vim-rails.git ~/.janus/vim-rails | |
git clone [email protected]:tpope/vim-repeat.git ~/.janus/vim-repeat | |
git clone [email protected]:tpope/vim-surround.git ~/.janus/vim-surround | |
fi | |
version_pattern='[0-9]+.{2}' | |
if [[ ! `git flow version` =~ $version_pattern ]]; then | |
echo "Installing git flow" | |
brew install git-flow | |
fi | |
################# | |
# SUDO COMMANDS # | |
################# | |
if [[ ! `git extras -v` =~ $version_pattern ]]; then | |
echo "Installing git extras" | |
brew install git-extras | |
sudo git extras update | |
fi |
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
####### | |
# OSX # | |
####### | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* | |
# Files that might appear in the root of a volume | |
.DocumentRevisions-V100 | |
.fseventsd | |
.Spotlight-V100 | |
.TemporaryItems | |
.Trashes | |
.VolumeIcon.icns | |
# Directories potentially created on remote AFP share | |
.AppleDB | |
.AppleDesktop | |
Network Trash Folder | |
Temporary Items | |
.apdisk | |
####### | |
# Vim # | |
####### | |
[a-w][a-z] | |
[._]s[a-w][a-z] | |
*.un~ | |
Session.vim | |
.netrwhist | |
*~ | |
######## | |
# Ruby # | |
######## | |
## Environment normalisation: | |
/.bundle/ | |
/vendor/bundle | |
/lib/bundler/man/ | |
# for a library or gem, you might want to ignore these files since the code is | |
# intended to run in multiple environments; otherwise, check them in: | |
# Gemfile.lock | |
# .ruby-version | |
# .ruby-gemset | |
## unless supporting rvm < 1.11.0 or doing something fancy, ignore this: | |
.rvmrc | |
######## | |
# Tags # | |
######## | |
# Ignore tags created by etags, ctags, gtags (GNU global) and cscope | |
TAGS | |
!TAGS/ | |
tags | |
!tags/ | |
gtags.files | |
GTAGS | |
GRTAGS | |
GPATH | |
cscope.files | |
cscope.out | |
cscope.in.out | |
cscope.po.out |
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
if has('mouse') | |
set mouse=a | |
" http://vim.wikia.com/wiki/In_line_copy_and_paste_to_system_clipboard | |
vmap <leader>c y:call system("pbcopy", getreg("\""))<CR> | |
nmap <leader>v :call setreg("\"",system("pbpaste"))<CR>p | |
endif | |
color molokai | |
let ruby_fold=1 | |
set foldmethod=expr | |
set foldcolumn=0 | |
set foldlevel=99 | |
autocmd FileType ruby let &l:tags = pathogen#legacyjoin(pathogen#uniq( | |
\ pathogen#split(&tags) + | |
\ map(split($GEM_PATH,':'),'v:val."/gems/*/tags"'))) |
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 LC_ALL=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export GIT_EDITOR=vim | |
# Path to your oh-my-zsh installation. | |
export 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" | |
# 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 git-flow git-extras ruby irb rvm) | |
# User configuration | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
# 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" | |
# 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`. | |
# | |
# Example aliases | |
alias ohmyzsh="vi ~/.oh-my-zsh" | |
alias zshconfig="vi ~/.zshrc" | |
alias zshconfigreload="source ~/.zshrc" | |
# Bundler | |
export BUNDLE_JOBS=4 | |
alias be="bundle exec" | |
# RVM | |
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment