1

I edited my .bashrc file to change the command prompt. I got it to work but the problem is it doesn't launch immediately upon opening the terminal. But when I type "bash" it appears correctly. Is there any way to get the prompt to appear correctly without using the bash command?

1

I figured it out, i just entered the following code into ~/.bash_profile:

if [[ $- == *i* && -f ~/.bashrc ]]; then
    . ~/.bashrc
fi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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