Skip to content

Instantly share code, notes, and snippets.

@ramhiser
Created November 19, 2011 06:57
Show Gist options
  • Save ramhiser/1378571 to your computer and use it in GitHub Desktop.
Save ramhiser/1378571 to your computer and use it in GitHub Desktop.
Bash Prompt for Putty using Solarized
# The colors are used with the Solarized dark color theme in Putty.
# They make look terrible if Solarized is not installed.
# Here's the link to Solarized:
# http://ethanschoonover.com/solarized
#
# I used the following website to generate my prompt:
# http://www.linuxhelp.net/guides/bashprompt/bashprompt-print.php
#
# There, I used the following code:
# <green>(<white>\d<yellow>@<white>\@<green>) (<white>\u<yellow>@<white>\h<green>) (<white>\W<green>)<space>$<space>
#
# NOTE: I added the last part manually to get my font color after I generated the prompt on the site.
# Here's the font color: \[\033[0;33m\]
PS1="\[\033[0;32m\](\[\033[1;37m\]\\d\[\033[1;33m\]@\[\033[1;37m\]\\@\[\033[0;32m\])(\[\033[1;37m\]\\u\[\033[1;33m\]@\[\033[1;37m\]\\h\[\033[\
0;32m\])(\[\033[1;37m\]\\W\[\033[0;32m\]) $ \[\033[0;33m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment