[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Standard .bashrc needs a minor fix
From: |
Bob Proulx |
Subject: |
Re: Standard .bashrc needs a minor fix |
Date: |
Thu, 6 May 2010 19:28:31 -0600 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Chuck Remes wrote:
> The standard .bashrc contains a line of code that precludes certain
> scripts from executing. It has to do with the logic for checking if
> the session is interactive.
>
> e.g.
> [ -z "$PS1" ] && return
>
> Usually a few other lines are included afterward to, for example,
> alias 'ls' and to set PS1 to a new value.
As more information, I looked at the rvm page and I see this there:
http://rvm.beginrescueend.com/rvm/install/
Only necessary the first time, put the following line into your
profile at the very end, after all path loads etc...
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm"
; fi
And later in the installation instructions:
Now add the sourcing line to your profiles:
for profile in .bash_profile .bashrc ; do echo 'if [[ -s
"$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi' >>
$HOME/$profile done
Note that it is talking about your profile and not your bashrc file.
Bob