Skip to content

Instantly share code, notes, and snippets.

@siffring
Created September 12, 2012 19:02

Revisions

  1. siffring revised this gist Sep 21, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .bash_login
    Original file line number Diff line number Diff line change
    @@ -14,11 +14,11 @@ alias subl="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"
    alias e="subl -n ."

    # Red cursor
    PS1="\e[01;31m\w \$ \e[00m"
    PS1='\[\e[01;31m\w \$ \e[00m\]'

    # Show the current git branch in the cursor
    parse_git_branch() {
    git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
    }

    PS1="\e[01;31m\w \$(parse_git_branch): \e[00m"
    PS1='\[\e[01;31m\w \$(parse_git_branch): \e[00m\]'
  2. siffring revised this gist Sep 13, 2012. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions .bash_login
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,15 @@
    # Some goodies for your /Users/[username]/.bash_login file

    # Set your search path
    PATH=$PATH:/usr/local/bin
    export PATH

    # Alias for clearing your dns cache
    alias dnscacheflush='dscacheutil -flushcache'

    # Alias for subl
    alias subl="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"

    # Alias for sublime
    alias e="subl -n ."

  3. siffring revised this gist Sep 12, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .bash_login
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Some goodies for your /Users/[username]/.bash_login file

    # Alias for clearing your dns cache
    alias dnscacheflush='dscacheutil -flushcache'

  4. siffring created this gist Sep 12, 2012.
    15 changes: 15 additions & 0 deletions .bash_login
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # Alias for clearing your dns cache
    alias dnscacheflush='dscacheutil -flushcache'

    # Alias for sublime
    alias e="subl -n ."

    # Red cursor
    PS1="\e[01;31m\w \$ \e[00m"

    # Show the current git branch in the cursor
    parse_git_branch() {
    git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
    }

    PS1="\e[01;31m\w \$(parse_git_branch): \e[00m"