Last active
September 27, 2015 22:58
-
-
Save ssoroka/1345759 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
export RUBY_HEAP_MIN_SLOTS=800000 | |
export RUBY_HEAP_FREE_MIN=100000 | |
export RUBY_HEAP_SLOTS_INCREMENT=300000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=79000000 | |
alias flow='ps vx | grep -iE "\b(adium|messages|mail|skype|twitter|propane|flint|sparrow)\b" | grep -v grep | cut -f1 -d" " | xargs kill; osascript -e "tell Application \"iTunes\" to play" 2&> /dev/null; echo "FLOW MODE ENABLED: Distractions closed; tunes playing"' | |
alias flowish='ps vx | grep -iE "\b(mail|skype|twitter|propane|flint|sparrow)\b" | grep -v grep | cut -f1 -d" " | xargs kill; osascript -e "tell Application \"iTunes\" to play" 2&> /dev/null; echo "FLOW MODE ENABLED: Distractions closed; tunes playing"' | |
export HISTFILESIZE=100000 | |
export GOPATH=$HOME/go | |
export PATH=~/bin:/usr/local/bin:/usr/local/share/python:$PATH:$GOPATH/bin:/usr/local/sbin | |
# git | |
export MANPATH=/usr/local/git/man:$MANPATH | |
export EDITOR='subl -w' | |
# export EDITOR='subl' | |
export SVN_EDITOR='subl -w' | |
export GIT_EDITOR='subl -w' | |
# my stuff. | |
export WORDS="/usr/share/dict/words" | |
export AUTOFEATURE=true | |
export ARCHFLAGS="-arch x86_64" | |
# export JEWELER_OPTS="--rspec" # --create-repo | |
# custom prompt | |
export PS1='\[\e[100D\]\[\e[34m\]$? \[\e[32m\]`rbenv version | cut -f1 -d" "`\[\e[0m\] \[\e[31m\]\W\[\e[0m\]#\[\e[33m\]`git br 2>/dev/null | grep "*" | cut -f2 -d" "`\[\e[0m\]$ ' | |
# ruby | |
alias irb='irb -rubygems' | |
alias r='rake' | |
alias rt='rake -T' | |
# rails | |
# alias rs='`if [ -f script/generate ]; then echo rake spec; else echo bundle exec rspec spec; fi`' # -c -fs | |
alias rs='bundle exec unicorn -p3000' # ie rails server # dropped -c unicorn.conf.rb | |
alias sg='`if [ -f script/generate ]; then echo script/generate; else echo script/rails generate; fi`' | |
alias sc='`if [ -f script/console ]; then echo script/console; else echo script/rails console; fi`' | |
# alias ss='`if [ -f script/server ]; then echo script/server; else echo script/rails server; fi`' | |
alias to='script/testonly' | |
alias reopen='git st --porcelain | grep -v "??" |cut -b4-900 | xargs subl' | |
alias shop='cd ~/Projects/shopify' | |
alias prop='cd ~/Projects/proposable' | |
alias 18='rbenv shell ree-1.8.7-2011.03' | |
alias 19='rbenv shell 1.9.3-p0' | |
alias 20='rbenv shell 2.0.0-p353' | |
alias reinstall_gems="for i in `ls vendor/bundle/ | grep -v cache`; do rm -rf vendor/bundle/$i; done; bundle install" | |
alias be='bundle exec' | |
alias bi='bundle install' | |
alias bu='bundle update' | |
alias cuke='cucumber' | |
alias rdbm='rake db:migrate' | |
alias rdbmt='rake db:migrate RAILS_ENV=test' | |
alias spp="git stash && git pull && git stash pop" | |
alias s='subl' | |
alias ok?='say deploy is complete! deploy is complete!' | |
# alias rc='clear; rake spec; cucumber -p default' | |
# alias api='open http://railsapi.com/doc/rails-v3.0.0RC/' | |
# alias tests='rs && cuke' | |
# # git | |
alias gpom='git push origin master' | |
alias gpo='git push origin' | |
alias ci='git ci' | |
alias gci='git ci' | |
alias dif='git diff' | |
alias st='git st' | |
alias add='git add' | |
alias grm='git rm' | |
alias br='git branch' | |
alias gco='git checkout' | |
alias pull='git pull' | |
alias pullr='git pull --rebase' | |
alias push='git push' | |
alias pp='git pull;git push' | |
# alias gm='git merge' | |
alias merge='git merge' | |
alias log='git log' | |
alias lol='git lol' | |
alias stash='git stash save' | |
alias pop='git stash pop' | |
alias ignore='ruby -e "puts ARGV.join(\"\\n\")" >> .gitignore' | |
alias gignore='ruby -e "puts ARGV.join(\"\\n\")" >> ~/.gitignore' | |
# bash | |
alias lsl='ls -lFa' | |
alias lc='wc -l' # alias word count to line count | |
alias .='pwd' | |
alias ..='cd ..' | |
alias ...='..;..' | |
alias ....='...;..' | |
alias .....='....;..' | |
alias ......='.....;..' | |
alias .......='......;..' | |
alias colors="ruby -e '255.times {|i| print \"\x1b[38;5;#{i}m#{i} \"};puts'" | |
alias grep='grep --color=auto' | |
alias less='less -R' | |
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH" | |
eval "$(rbenv init -)" | |
export COVERAGE=true |
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
--- | |
:backtrace: false | |
:benchmark: false | |
:bulk_threshold: 1000 | |
:sources: | |
- http://gems.github.com | |
- https://rubygems.org | |
:update_sources: true | |
:verbose: true | |
gem: --no-rdoc --no-ri |
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 = <name> | |
email = <email> | |
[color] | |
ui = true | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
[alias] | |
co = checkout | |
st = status | |
ci = commit | |
br = branch | |
dif = diff | |
lol = log --pretty=oneline --abbrev-commit --graph --decorate --first-parent | |
commdiff = log --pretty=oneline --left-right | |
unstage = reset HEAD | |
[apply] | |
whitespace = nowarn | |
[core] | |
editor = mate -w | |
excludesfile = /Users/steven/.gitignore | |
[github] | |
token = <token> | |
user = <user> | |
[branch "master"] | |
remote = origin | |
merge = refs/heads/master | |
[merge] | |
keepBackup = false | |
tool = p4merge | |
[mergetool "p4merge"] | |
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false | |
#[diff] | |
# external = p4diff | |
[push] | |
default = tracking |
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 ENV['RAILS_ENV'] | |
# rails only | |
load File.dirname(__FILE__) + '/.railsrc' | |
else | |
# irb only | |
require 'irb/completion' | |
end | |
# both | |
alias q exit | |
class Object | |
def m | |
(methods - Object.methods).sort | |
end | |
end | |
ENV['in_irb'] = '1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment