Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

after installing virtualenvwrapper I edited .bash_profile and added those lines (it was blank actually)

export WORKON_HOME="$HOME/.virtualenvs"
source /usr/local/bin/virtualenvwrapper.sh

then I sourced .bashrc the normal is to apply the changes and output some lines on terminal but nothing happens

what is the problem?

share|improve this question
1  
if you edited .bash_profile, why did you source .bashrc? –  glenn jackman Jun 4 '13 at 15:11
add comment

1 Answer

up vote 2 down vote accepted

The .bash_profile is used just by login-shells. If you start a terminal/xterm/konsole on your Desktop, this file isn't sourced.

The file you probably want to use is ~/.bashrc. Just copy the systems /etc/bash/bashrc to your home directory:

cp /etc/bash.bashrc ~/.bashrc

and append your information to that file:

echo 'export WORKON_HOME="$HOME/.virtualenvs"' >> ~/.bashrc
echo '. /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc
share|improve this answer
    
thanks for your answer, but there is no directory called /etc/bash –  UXE Jun 4 '13 at 14:47
    
@UXE he meant /etc/bash.bashrc. –  terdon Jun 4 '13 at 15:53
    
Yes, sorry checked the file on the wrong distribution. –  tvn Jun 4 '13 at 21:11
    
alright now this works, thanks –  UXE Jun 5 '13 at 0:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.