I would like to use different terminal setting after doing a ssh into another machine. This would mean I could have my terminals to different machine using different colours. Is this possible? Thanks.
Yes! It absolutely is possible.
The colors and other aspects of your prompt are controlled by configuration files.
If you're using the default bash, shell then one place where you can configure your prompt is in a file in your home directory called
You'll have a
Put a different prompt config string in each of those files to get different colors on each machine.
What is a prompt config string, and how do you write a custom one?
This guide has full information on all the options you can enter to configure your bash shell prompt, including its colors.
Yup. This is possible.
For my laptops I put the following line in
On my servers i put the line below in