Saturday, October 2, 2010

Ubuntu 10.10 Customizing The Terminal

I Don't know about you, but when I open Terminal and see User@User:~/$ I wondered if I could change this, you can. Located in the Home directory there is a file named .bashrc when the show all options is checked.

Just copy and paste the following into Terminal to give you a good idea of how you can alter the Code to your own liking.

PS1='${U}\[\033[01;34m\]Anything-You-Want\[\033[01;32m\]: \[\033[01;32m\]\w\[\033[01;35m\] $\[\033[00m\] '

Don't worry this command is only temporary, you need to edit the .bashrc file in order for it to be permanent. 

Note: Be sure to backup the old file and check that a long paste command stays within it's bounds and works properly If your planning to edit .bashrc 

You can copy and paste this one if you like:

./rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "LNX 10,0,42,34" -W "http://media.mtvnservices.com/player/release/?v=4.2.2-8" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.colbertnation.com/full-episodes/thu-january-14-2010-kathleen-sebelius" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/colbert/season_06/episode_008/cr_06008_act1_768x432_1720.mp4" -o output.flv