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?
Asked
Active
Viewed 67 times
1
-
Did you create .bashrc file in the ~/ directory? Example at: Custom Terminal Prompt – WinEunuuchs2Unix Aug 09 '16 at 22:57
1 Answers
1
I figured it out, i just entered the following code into ~/.bash_profile:
if [[ $- == *i* && -f ~/.bashrc ]]; then
. ~/.bashrc
fi

joemetheus
- 21