I'm not very familiar with the Chef-Solo app, but the bashrc entry is basically<div>if the prompt $PS1 is empty/not set, then don't load the rest of the configuration.</div><div><br></div><div>If you're not using an interactive bash shell, don't load the interactive bash parameters</div>
<div>such as your history, aliases, color prompts, etc.</div><div><br></div><div>This would be for things like cron, startup scripts, etc. that use /bin/bash</div><div><br></div><div>If you're trying to set environment variables for all users, you can create a new configuration file </div>
<div>in the /etc/profile.d/ directory with the parameters you want those users to have which is loaded</div><div>before the /etc/bash.bashrc or the ~/.bashrc</div><div><br></div><div>Hope this helps</div><div><br></div><div>
<br></div><div><br><div class="gmail_quote">On Tue, Jan 31, 2012 at 11:42 AM, Hedge Hog <span dir="ltr"><<a href="mailto:hedgehogshiatus@gmail.com">hedgehogshiatus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
In the current AMI's at <a href="http://cloud.ubuntu.com" target="_blank">cloud.ubuntu.com</a> (search:lucid 64 ebs) the<br>
default bashrc has:<br>
<br>
   [ -z "$PS1" ] && return<br>
<br>
Which of course means that it is not trivial to append to the .bashrc<br>
<br>
Naturally this default setting is sensible for people logged in, and<br>
interactive cloud instances are an important use case.<br>
However,  but since these amis are the same as at[0], whose url<br>
suggests server use acses, I wonder if it isn't reasonable to have the<br>
default bashrc without this early return?<br>
<br>
For the record I'm trying to get the AMI to the point where I install<br>
Chef-solo, with the particular ruby install I need, and then can hand<br>
off all these sorts of issues to chef-solo.<br>
<br>
Have I missed a trick, or some AMI that doesn't have this behavior as default?<br>
I'd be interested in hearing how others handle this.<br>
<br>
Best wishes<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα<br>
[The fox knows many things, but the hedgehog knows one big thing.]<br>
  Archilochus, Greek poet (c. 680 BC – c. 645 BC)<br>
<a href="http://hedgehogshiatus.com" target="_blank">http://hedgehogshiatus.com</a><br>
<br>
--<br>
Ubuntu-cloud mailing list<br>
<a href="mailto:Ubuntu-cloud@lists.ubuntu.com">Ubuntu-cloud@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-cloud" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-cloud</a><br>
</font></span></blockquote></div><br></div>