Skip to content

Instantly share code, notes, and snippets.

@enthal
Created January 16, 2012 21:24
Show Gist options
  • Select an option

  • Save enthal/1623115 to your computer and use it in GitHub Desktop.

Select an option

Save enthal/1623115 to your computer and use it in GitHub Desktop.

Revisions

  1. enthal revised this gist Aug 1, 2012. 1 changed file with 2 additions and 8 deletions.
    10 changes: 2 additions & 8 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@

    export PATH=/usr/local/bin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
    export JAVA_HOME=$(/usr/libexec/java_home)
    # export JAVA_HOME=$(/usr/libexec/java_home)
    # export LD_LIBRARY_PATH=/usr/local/lib/

    alias ll='ls -al'
    @@ -13,8 +13,6 @@ alias gs='git status -s'
    alias gl='git log --oneline'
    alias gd='git diff'

    alias pig='/usr/bin/time /Users/Tim/Downloads/pig-0.9.1/bin/pig'

    PS1='____________________________\n@@@ \h:\W \u \$ '
    parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'; }
    PS1="________________________________________________________\n\u@\h \w\[\e[0;33;49m\]\$(parse_git_branch)\[\e[0;0m\]\n\$ "
    @@ -25,8 +23,4 @@ GITCOMPL=/usr/local/etc/bash_completion.d/git-completion.bash &&\
    export ARCHFLAGS="-arch x86_64"

    [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function


    # activate current rvm dir, if any
    cd ~; cd -

    cd ~; cd - # activate current rvm dir, if any
  2. enthal created this gist Jan 16, 2012.
    32 changes: 32 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@

    export PATH=/usr/local/bin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
    export JAVA_HOME=$(/usr/libexec/java_home)
    # export LD_LIBRARY_PATH=/usr/local/lib/

    alias ll='ls -al'
    alias m='mate'
    alias mw='mate -w'
    alias .p='. ~/.bashrc'
    alias ep='mw ~/.bashrc; .p'

    alias gs='git status -s'
    alias gl='git log --oneline'
    alias gd='git diff'

    alias pig='/usr/bin/time /Users/Tim/Downloads/pig-0.9.1/bin/pig'

    PS1='____________________________\n@@@ \h:\W \u \$ '
    parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'; }
    PS1="________________________________________________________\n\u@\h \w\[\e[0;33;49m\]\$(parse_git_branch)\[\e[0;0m\]\n\$ "

    GITCOMPL=/usr/local/etc/bash_completion.d/git-completion.bash &&\
    [ -f $GITCOMPL ] && source $GITCOMPL

    export ARCHFLAGS="-arch x86_64"

    [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function


    # activate current rvm dir, if any
    cd ~; cd -