« links for 2009-06-20 | Main | links for 2009-06-21 »


在 gnome-terminal 中使用彩色的 Bash 提示符

每次打开 gnome-terminal 看到的提示符都不是彩色的,很是不爽。也看了 .bashrc,没发现问题。找了一下,原来这是个 Bug 啊,看 Bash prompt string looks for xterm-color, gnome terminal identifies as xterm 这里。

修复方法也很简单,打开 .bashrc,在 27 行附近,有这么一段内容:

case "$TERM" in
xterm-color) color_prompt=yes;;
esac

在 xterm-color 前添加一个 "xterm|" 就可以了,也就是变成了:

case "$TERM" in
xterm|xterm-color) color_prompt=yes;;
esac

也不用重启也不用重新登录,直接打开一个新的 gnome-terminal 就看到彩色的 bash 提示符了。


Comments

Couldn't have said it better myself

Im based in London have worked as a secretary for more than 10 years and have an HND in Business Studies but am tired of admin work and office politics and would like to do something more creative- change careers.. . I write in my spare time and have attended an advanced writing course for the past 3 years and am writing a novel. I would like to see if I could train to teach creative writing in further education colleges etc or and English /English literature. I would also be grateful if I could get any info on what qualifications you need to be able to teach English as a first language and Basic literacy skills and ESOL..

Some people will never learn anything, for this reason, because they understand everything too soon.

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It's very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.

It is the ideal blog for everyone who wants to discover more on the following question. You know a lot its almost very difficult to argue with you (not that I actually would definitely want…HaHa). You definitely put a brand new spin for a topic thats already been written about for many years. Excellent stuff, just awesome!

I was extremely pleased to find this web-site.I desired to thank you for your time for the excellent study!! I ACTUALLY absolutely enjoying every little it all and I had you saved to look at new stuff you writing.

hm.. i didn't agree with some things, nevertheless i do enjoyed the post in general... this article was actually proposed to me by a good friend at facebook and she ended up being right. really good read! Take care, Resa Billigt

Post a comment