Skip to content

Instantly share code, notes, and snippets.

@heathermiller
Last active December 11, 2018 06:35
Show Gist options
  • Select an option

  • Save heathermiller/9158658 to your computer and use it in GitHub Desktop.

Select an option

Save heathermiller/9158658 to your computer and use it in GitHub Desktop.

Revisions

  1. heathermiller revised this gist Feb 22, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,6 @@ A nicer Terminal experience.

    Just add the following to your bash profile.

    export PS1='\[\033[38;5;202;48;5;0m\]⏣ \[\033[38;5;134;48;5;0m\]\w \[\033[38;5;112;48;5;0m\]`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[00m\]'
    export PS1='\[\033[38;5;202;48;5;0m\]⏣ \[\033[38;5;134;48;5;0m\]\w \[\033[38;5;112;48;5;0m\]`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[00m\]'

    (The green bit there is the **current branch** you're on if you're in a directory that has a git repository within it)
  2. heathermiller revised this gist Feb 22, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    A nicer Terminal experience.

    ![](http://f.cl.ly/items/141U3w1y313p2p2B1d3A/Screen%20Shot%202014-02-22%20at%206.27.05%20PM.png)
    ![](http://f.cl.ly/items/2h1t1q1X2O1U1M2r1F3x/commandline.png)

    Just add the following to your bash profile.

  3. heathermiller created this gist Feb 22, 2014.
    7 changes: 7 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    A nicer Terminal experience.

    ![](http://f.cl.ly/items/141U3w1y313p2p2B1d3A/Screen%20Shot%202014-02-22%20at%206.27.05%20PM.png)

    Just add the following to your bash profile.

    export PS1='\[\033[38;5;202;48;5;0m\]⏣ \[\033[38;5;134;48;5;0m\]\w \[\033[38;5;112;48;5;0m\]`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[00m\]'