-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
44 lines (34 loc) · 1.71 KB
/
.bash_profile
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
# Just run this command:
# curl https://raw.githubusercontent.com/theSteveMitchell/.heartfiles/master/.bash_profile > ~/.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
PATH=$PATH:/usr/local/sbin
#environment setup:
export HEADLESS=false
export POLTERGEIST=true
#BASH ALIASES
alias edit="open -a TextWrangler" #TextEdit is the worste.
alias newalias="edit ~/.bash_profile" #opens this file (so...put this file there!)
alias refresh="source ~/.bash_profile" #reload the profile to consume changes to this file"
alias hosts="edit /etc/hosts" #this file always opens read-only
alias sshconfig="edit ~/.ssh/config"
#aliasing 'open' seems to break now...likely that's because it's a dumb thing to do.
#alias open="edit" #I'm 28 years old, and I've never opened a file as read-only on purpose
#DEVELOPMENT
alias subl="open -a Sublime\ Text"
#RAILS/RUBY TASKS
alias brake="bundle exec rake"
alias brec="bundle exec rspec"
alias tests="bundle exec rake spec"
alias ci="bundle exec rake teamcity:ci"
alias dby="edit config/database.yml" #change database.yml in a rails project.
alias mgy="edit config/mongoid.yml" #mongo config
alias migrate="brake db:migrate && brake db:test:prepare"
alias migrate!="brake db:migrate && brake db:test:prepare && git checkout db/schema.rb"
#useful for working in SLQlite when team is sql-server centric, so we don't garble the schema for others.
#RVM GEMSET/PROJECT ALIASES.
#official projects
alias projecto="cd ~/Projects/projecto && rvm gemset use projecto && echo -n -e '\033]0;projecto\007' "
#side projects.
#me? never.....
#ssh quickies
alias syslog="ssh syslog -t 'cd /var/log/syslog/remote; bash'" #obv syslog is an ssh alias defined in .ssh/config.