Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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
if you edited .bash_profile, why did you source .bashrc? – glenn jackman Jun 4 '13 at 15:11
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/' >> ~/.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

Your Answer


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.