[openstack-dev] [All] IRC Mishaps

Monty Taylor mordred at inaugust.com
Thu Feb 9 22:39:51 UTC 2017

On 02/09/2017 10:43 AM, Clint Byrum wrote:
> Excerpts from Mark Voelker's message of 2017-02-09 15:41:33 +0000:
>> I work with lots of different clouds and any time I switch focus to a terminal I have to figure out which cloud it’s environment is set up to use.  My terminal emulator has the same color scheme as my IRC client, so I’ve probably typed “set | grep OS_” into IRC accidentally about a million times over the years. 
> Quick tip:
> #1 - Move all those bespoke rc's into a single clouds.yaml:
> http://docs.openstack.org/developer/python-openstackclient/configuration.html


> #2 - Abolish OS_* except OS_CLOUD from your environment variables


> #3 - Add $OS_CLOUD to your $PS1 -- You will now always know what cloud
> you're pointed at.

if [ "$color_prompt" = yes ]; then



Is in my prompt for that very reason, FWIW

More information about the OpenStack-dev mailing list