Super User is a question and answer site for computer enthusiasts and power users. 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 have a .bash_profile, and its giving me an error "Unexpected end of file" I have no clue whats wrong, here it is,

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
export PS1="\u@\h\\$"
PATH=$PATH:$HOME/bin

export PATH
share|improve this question
    
That's nice. Where's .bashrc? – Ignacio Vazquez-Abrams Dec 24 '12 at 5:35
    
@IgnacioVazquez-Abrams Eh, as in does it exist? Or as in where is it located? I don't get what you mean, its located in the same directory as the bash_profile, and contains the following, # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi – ncms1 Dec 24 '12 at 5:48
2  
@IgnacioVazquez-Abrams may be wondering, as I am, also, if the unexpected EOF is in that ~/.bashrc file, not in your .bash_profile. – Nicole Hamilton Dec 24 '12 at 6:20
    
what is the output of the following: source ~/.bashrc – jim mcnamara Dec 24 '12 at 22:25

You must log in to answer this question.

Browse other questions tagged .