Permalink
Browse files

Removed old stuff from bashrc, made brew location more flexible

  • Loading branch information...
1 parent 5b09631 commit ac895ef2259dfd54f117905b1e76eca4c4f840cf @jyurek committed Jul 28, 2010
Showing with 7 additions and 19 deletions.
  1. +7 −19 bashrc
View
26 bashrc
@@ -36,7 +36,8 @@ function gemcd {
export PROMPT_COMMAND=prompt_command_function
-export PATH=$HOME/.homebrew/bin:$HOME/.homebrew/sbin:$HOME:$PATH:/Library/PostgreSQL/8.4/bin:/usr/local/mysql/bin:/usr/local/ec2/bin:$HOME/bin
+export BREW=/usr/local/bin/brew
+export PATH=`$BREW --prefix`/bin:`$BREW --prefix`/sbin:$HOME:$PATH:$HOME/bin
export EDITOR=/usr/bin/vim
export CDPATH=.:~:~/Development
@@ -45,32 +46,19 @@ alias ....='cd ../../..'
alias .....='cd ../../../..'
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home/"
-export EC2_HOME="/Users/jyurek/.homebrew/Cellar/ec2-api-tools/1.3-46266/"
-export AWS_CONF_HOME=$HOME/.aws
-export EC2_GROUP=jyurek
-export EC2_AMITOOL_HOME="/Users/jyurek/.homebrew/Cellar/ec2-ami-tools/1.3-45758/jars"
-function load_aws
-{
- . $AWS_CONF_HOME/$1
-}
-load_aws $EC2_GROUP
-
-export GOROOT=`brew --cellar`/go/HEAD
-export GOARCH=amd64
-export GOOS=darwin
alias rerc='source ~/.bash_profile'
alias l=ls
alias ll='ls -la'
alias s=true
-if [ -f `brew --prefix`/etc/bash_completion ]; then
- . `brew --prefix`/etc/bash_completion
+if [ -f `$BREW --prefix`/etc/bash_completion ]; then
+ . `$BREW --prefix`/etc/bash_completion
fi
-if [ -f /Users/jyurek/.git-completion.bash ]; then
- . /Users/jyurek/.git-completion.bash
+if [ -f `$BREW --prefix`/etc/bash_completion.d/git-completion.bash ]; then
+ . `$BREW --prefix`/etc/bash_completion.d/git-completion.bash
fi
-if [[ -s /Users/jyurek/.rvm/scripts/rvm ]] ; then source /Users/jyurek/.rvm/scripts/rvm ; fi
+if [[ -s /Users/$USER/.rvm/scripts/rvm ]] ; then source /Users/$USER/.rvm/scripts/rvm ; fi

0 comments on commit ac895ef

Please sign in to comment.