Created
March 20, 2014 20:40
-
-
Save geocine/9673356 to your computer and use it in GitHub Desktop.
cygwin bash configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If not running interactively, don't do anything | |
| [[ "$-" != *i* ]] && return | |
| # add clear function | |
| alias clear='printf "\033c"' | |
| # Lowercase username | |
| uname=`echo "$USERNAME" | tr "[A-Z]" "[a-z]"` | |
| # Lowercase hostname | |
| hname=`echo "$HOSTNAME" | tr "[A-Z]" "[a-z]"` | |
| hname="earth" | |
| function color_my_prompt { | |
| #local __user_and_host="\[\033[01;32m\]\u@\h" | |
| local __user_and_host="\[\033[01;32m\]${uname}@${hname}" | |
| local __cur_location="\[\033[01;34m\]\w" | |
| local __git_branch_color="\[\033[31m\]" | |
| #local __git_branch="\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`" | |
| local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`' | |
| local __prompt_tail="\[\033[35m\]$" | |
| local __last_color="\[\033[00m\]" | |
| export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color " | |
| } | |
| color_my_prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BoldAsFont=no | |
| FontHeight=12 | |
| ForegroundColour=187,187,187 | |
| BackgroundColour=38,38,38 | |
| CursorColour=255,165,96 | |
| IMECursorColour=128,224,160 | |
| Black=124,124,124 | |
| BoldBlack=79,79,79 | |
| Red=255,182,176 | |
| BoldRed=255,108,96 | |
| Green=206,255,172 | |
| BoldGreen=168,255,96 | |
| Yellow=255,255,204 | |
| BoldYellow=255,255,182 | |
| Blue=181,220,255 | |
| BoldBlue=150,203,254 | |
| Magenta=255,156,254 | |
| BoldMagenta=255,115,253 | |
| Cyan=223,223,254 | |
| BoldCyan=198,197,254 | |
| White=255,255,255 | |
| BoldWhite=238,238,238 | |
| Font=Consolas | |
| FontIsBold=no | |
| Transparency=off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment