Bored of the plain black SSH prompts, here's something interesting to make you cheer up...
Login to the server via SSH as root, edit the .bash_profile file found in the /root directory & paste the following line:Save & quit the file... Now relogin through a new/different session to see the funexport PS1="\[$(tput bold)$(tput setb 4)$(tput setaf 7)\]\u@\h:\w $ \[$(tput sgr0)\]"
You can further more change the various attributes within the given line to try a variety of colours..
eg: for blue background with command history number, try these:Code:export PS1='\e[1;31m\]\e[7m[\h - ${VIEW}\u ] [\w]\e[m\]\e[27m\n[\!]$'IMPORTANT :: Please make sure to leave the current window running & check the changes in a new one, so that you'd be able to revert the changes done to the .bash_profile just in case you land up with a black background/screen along with black text..Code:export PS1='\e[7m[\h - ${VIEW}\u ] [\w]\e[27m\n[\!]$'![]()




Reply With Quote
