Trackbacks
Trackback specific URI for this entry:
http://www.sapphirepaw.org/blog/comment.php?type=trackback&entry_id=376
Direct link to this entry:
http://www.sapphirepaw.org/blog/index.php?/archives/376-gnome-terminal-BlackRock.html
Another ~/.bashrc trick: change prompt by shell depth
if [ "$SHLVL" -le 1 ]; then _ps1_code="0;7"; else _ps1_code="$(( ($SHLVL - 2) / 6 % 2));3$((6 - ($SHLVL - 2) % 6))" fi export PS1='\[\e[36m\]\@ \[\e[30;1m\]\h:\w \[\e['"$_ps1_code"'m\]\$\[\e[0m\] ' unset _ps1_code 12:17 PM foreigner:/etc $ bash
Weblog: Pawprints of the Mind
Tracked: Jun 30, 12:36