Skip to main content

a little fun with bash

The fun of Linux is that you can configure it as you want.
This post is about some config i made.

1.color
Screenshot-color
  • vim ~/.bashrc
  • add this line: 
  PS1='\[\033[1;32m\]\u\[\033[1;32m\]@\h >>\[\033[0;34m\]\w\$ \[\033[1;36m\]'
  • save and quit.
  • close the terminal and open a new one. Now it's colored.
more HowTo and color in here.
2. show somthing open opening terminal (like the Linux Mint)
  • vim /.bashrc
  •  add command lines
  • save and quit.
examples:
1.calendar
 add /usr/bin/cal in .bashrc.
Screenshot-calendar
2.fortune
sudo apt-get install fortune-zh  (for others languages, aptitude seacrh them)
add  /usr/bin/fortune-zh in .bashrc.
Screenshot-fortune
3.cowsay and others
sudo apt-get install cowsay 
add fortune-zh | cowsay  in .bashrc.
Screenshot-cowsay

Comments

Popular posts from this blog

考试

公考成绩出了...发挥很稳定,和大四第一次考的成绩一样。排名23,还不错,今年有好好复习的动力了。 本周考职称外语,四月份考会计从业资格证,五月的计算机中级不知道要不要报名.. 今年肯定是考试的一年。

公考旅游

昨天是一年一度的浙江省公务员考试的日子,我也多了个借口到温州玩2天。 来之前早早的计划好了行程……没想到天有不测风云,同学开得披萨店没吃到,大学城故地重游也没去。 最后,两天半的时间和同学去了3次KTV...还是同一批人- -! ps:公务员对我来说就是个旅游的机会,2月前的国考让我去杭州玩了2天,为划船去了3次西湖但是都未能如愿……今年年底继续~

BACK HERE!

it has been a long time Since 2006 i set my blog at blogspot.com. i have tried other services such as wordpress, typecho, hexo, hugo etc because google had been blocked in 2008. Just tired of buying vps,install database and install blog applications. Get back here to stay simple.