Categories
Development Linux

Generate a color code from an arbitrary string

I want my shell prompt to have a different, unique, consistent color automatically based on the hostname of the server. For example, when I log in to a particular server, the prompt should be a color specific to that server, which will be the same the next time I log in to that server. I […]

Categories
Development Linux

Generate a color code from an arbitrary string

I want my shell prompt to have a different, unique, consistent color automatically based on the hostname of the server. For example, when I log in to a particular server, the prompt should be a color specific to that server, which will be the same the next time I log in to that server. I […]

Categories
Development Linux

Generate a color code from an arbitrary string

I want my shell prompt to have a different, unique, consistent color automatically based on the hostname of the server. For example, when I log in to a particular server, the prompt should be a color specific to that server, which will be the same the next time I log in to that server. I […]