-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
73 lines (57 loc) · 1.79 KB
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000
export ARCHFLAGS="-arch x86_64"
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh # does the auto-switching on cd based on .ruby-version
chruby ruby-2.0.0-p594
#######
###
# Alternatively, copy/symlink this file and source in your shell. See `hitch --setup-path`.
hitch() {
command hitch "$@"
if [[ -s "$HOME/.hitch_export_authors" ]] ; then source "$HOME/.hitch_export_authors" ; fi
}
alias unhitch='hitch -u'
# Uncomment to persist pair info between terminal instances
# hitch
# if [ -f $(brew --prefix)/etc/bash_completion ]; then
# . $(brew --prefix)/etc/bash_completion
# fi
###
# Shortcut to ssh into servers. Command would be $ sst <app1>
function sst() { ssh -t $1.czops.net 'cd /srv/careful/current 2> /dev/null; sudo su deploy'; }
###
# Shortcut to return db to pristine state (CZ)
alias re_db='rake db:populate && rake db:migrate && rake db:test:prepare'
# db:populate is dependent on db:reset, so reset gets run first.
###
# Git aliases
alias gst="git status"
alias gd="git diff"
alias gpom="git pull origin master"
alias gol="git log --oneline --decorate"
alias gdc="git diff --cached"
alias ntt="HardwareSimulator.sh"
###
# Specjour
function sj() {
killall -9 -m spec.rb
killall -9 -m webkit
rake db:test:prepare
ps aux | grep specjour
ps aux | grep webkit
specjour > .specjour.ignore &
tail -f .specjour.ignore
}
###
# Rerun failed tests on specjour
function sjrr() {
re_db
bundle exec specjour | script/rerun -d
}
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### Bundler alias. TO test changes, run $dbundle
alias dbundle='ruby -I ~/bundler/lib ~/bundler/bin/bundle'