dcsimg
messed up the .bash_profile
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Urvish_Shah
Posted On:   Tuesday, July 17, 2001 12:51 PM

Somehow I messed up the .bash_profile now if I login as my a/c as ushah i am not getting the home/ushah> but it gives me $bash symbol and this error:command not found bash /home/ushah/.bash_profile:line20:syntex error: unexpected end of line My .bash_profile file is like this: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=/usr/jdk1.2.2/bin:$PATH:$HOME/bin:.: BASH_ENV=$HOME/.bashrc USERNAME="" C   More>>

Somehow I messed up the .bash_profile

now if I login as my a/c as ushah
i am not getting the home/ushah>
but it gives me $bash symbol

and this error:command not found

bash /home/ushah/.bash_profile:line20:syntex error: unexpected end of line


My .bash_profile file is like this:



# .bash_profile


# Get the aliases and functions



if [ -f ~/.bashrc ]; then


. ~/.bashrc


fi



# User specific environment and startup programs


PATH=/usr/jdk1.2.2/bin:$PATH:$HOME/bin:.:


BASH_ENV=$HOME/.bashrc


USERNAME=""


CLASSPATH=/usr/jdk1.2.2/lib


export USERNAME BASH_ENV PATH


export TERM=vt100


export CLASSPATH



Can anybody help me with this syntax error.
Urvish

   <<Less

Re: messed up the .bash_profile

Posted By:   Cory_Powers  
Posted On:   Tuesday, July 17, 2001 02:34 PM

Use the following command to set your prompt.


export PS1='u@h:w$ '


Here is a good site on bash scripting.

http://linuxdoc.org/HOWTO/Bash-Prompt-HOWTO.html
About | Sitemap | Contact