Hipsnip

Snippets and clips; tags and links.

Jul 13, 2009 12:26pm

Enable bash color prompt in Ubuntu

This little script will enable a colored PS1 in bash.


#!/bin/bash

X=`mktemp`; cat ~/.bashrc | sed "s/^#force_color_prompt=yes/force_color_prompt=yes/g" > $X; mv $X ~/.bashrc
Page 1 of 1