Ok I want the username and OS specified in the terminal to look something like this
can this be done in xterm or aterm or any other terminal for that matter ?Code:username@ubuntu:~$apt-get moo
Ok I want the username and OS specified in the terminal to look something like this
can this be done in xterm or aterm or any other terminal for that matter ?Code:username@ubuntu:~$apt-get moo
Last edited by I'mGeorge; December 1st, 2010 at 07:16 PM.
Debian rulz but Ubuntu it's alright either
Code:PS1="\033[0;31m\u\033[0;34m@\h:\w\$\033[0m" export PS1
Nice manual @TeoBigusGeekus but to answer @0949er in a few words here it goes.
PS1 it's a shell variable, as I've just found out myself. So if you wanna find more about how you can customize prompt settings that are stored in this variable,and it's parameters follow this link http://www.cyberciti.biz/faq/bash-sh...linux-or-unix/
If you wanna make the changes permanent edit the file ~/.bashrc from your home folder. Look for something that's pretty much like this
and replace it with your own, in my case it's what TeoBigusGeekus already gave meCode:PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
Code:PS1="\033[0;31m\u\033[0;34m@\h:\w\$\033[0m"
Debian rulz but Ubuntu it's alright either
Bookmarks