Monday, April 19, 2010

Bash Prompt and Title

I've updated my .bashrc because I want the title of an xterm or gnome-term to display the current directory or the currently running process.

here are the relevant lines

export PS1='\[\e]0;$PWD\007\]\u@\h:\W$'

trap 'echo -ne "\e]0;$BASH_COMMAND\007"' DEBUG

No comments:

chris' shared items

Twitter Updates

Official blog of Chris Lee Runyan

Fastest C++ in the west.