<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>oh god, why'd it break‽ &#187; bash</title>
	<atom:link href="http://yokohead.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://yokohead.com</link>
	<description>screwing around with technology</description>
	<lastBuildDate>Mon, 26 Jul 2010 18:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Customize the bash prompt</title>
		<link>http://yokohead.com/2009/01/customize-the-bash-prompt/</link>
		<comments>http://yokohead.com/2009/01/customize-the-bash-prompt/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 08:30:30 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=43</guid>
		<description><![CDATA[http://ubuntuforums.org/showthread.php?t=614743
cd ~/
cp .bashrc .bashrc-backup
touch .bash_colors
gedit .bash_colors
Paste in:
# ANSI color codes
RS="\[\033[0m\]"    # reset
HC="\[\033[1m\]"    # hicolor
UL="\[\033[4m\]"    # underline
INV="\[\033[7m\]"   # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
FBLE="\[\033[34m\]" # foreground blue
FMAG="\[\033[35m\]" # foreground magenta
FCYN="\[\033[36m\]" # foreground cyan
FWHT="\[\033[37m\]" # foreground white
BBLK="\[\033[40m\]" # background black
BRED="\[\033[41m\]" # background red
BGRN="\[\033[42m\]" # background green
BYEL="\[\033[43m\]" # [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ubuntuforums.org/showthread.php?t=614743">http://ubuntuforums.org/showthread.php?t=614743</a></p>
<pre>cd ~/</pre>
<pre>cp .bashrc .bashrc-backup</pre>
<pre>touch .bash_colors</pre>
<pre>gedit .bash_colors</pre>
<p>Paste in:</p>
<pre># ANSI color codes
RS="\[\033[0m\]"    # reset
HC="\[\033[1m\]"    # hicolor
UL="\[\033[4m\]"    # underline
INV="\[\033[7m\]"   # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
FBLE="\[\033[34m\]" # foreground blue
FMAG="\[\033[35m\]" # foreground magenta
FCYN="\[\033[36m\]" # foreground cyan
FWHT="\[\033[37m\]" # foreground white
BBLK="\[\033[40m\]" # background black
BRED="\[\033[41m\]" # background red
BGRN="\[\033[42m\]" # background green
BYEL="\[\033[43m\]" # background yellow
BBLE="\[\033[44m\]" # background blue
BMAG="\[\033[45m\]" # background magenta
BCYN="\[\033[46m\]" # background cyan
BWHT="\[\033[47m\]" # background white</pre>
<p>Save the file, close gedit</p>
<pre>sudo gedit .bashrc</pre>
<p>At the bottom of the file,  add:</p>
<pre>PS1="$HC$FGRN[$FRED\u$FGRN: $FRED\w$FGRN]\\$ $RS"
PS2="&gt; "

source ~/.bash_colors</pre>
<pre>PS1 will look like this:<span style="color: #00ff00;"> [</span><span style="color: #ff0000;">kyle</span><span style="color: #00ff00;">:</span> <span style="color: #ff0000;">~/Desktop</span><span style="color: #00ff00;">]$ </span></pre>
<p>PS2 will look like a standard &gt;,  nothing special</p>
<p>Here&#8217;s what the bottom of my .bashrc looks like &#8211; everything has simply been added after the standard ubuntu configuration and has worked well so far.</p>
<pre># load extra source files
source ~/.bash_aliases    # customized alias list
source ~/.bash_colors     # ANSI color codes

# personal prompts
PS1="$HC$FGRN[$FRED\u$FGRN: $FRED\w$FGRN]\\$ $RS"
PS2="&gt; "</pre>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/01/customize-the-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
