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

I'm currently doing the Tango with Django module and I've edited my .bashrc as it lists.


 [[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc

to the end of it. However now whenever I try to do anything in the terminal it opens with

awk: 1: unexpected character '.'

followed by, for example,

Command 'gedit' is available in '/usr/bin/gedit'
The command could not be located because '/usr/bin' is not included in the PATH  environment variable.

Any advice would be appreciated. Thanks

share|improve this question
Is this question answered or not? – don.joey Oct 14 '14 at 15:09

I think you've overwritten your PATH with that source command, which I would say is unnecessary. The easier way to do it is to add a line like this:

export PATH=~/.pythonbrew/etc/bashrc:$PATH

That will add your location to your PATH

To check your path at any time you can do "echo $PATH". I imagine you'll find only one thing there at the moment.

share|improve this answer

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.