You are not logged in.
Pages: 1
I've tried to change bashrc to have Bash color prompt
but it didn't work for me so I restored it to the default settings but it still shows errors
/etc/bash.bashrc: line 4: $'\r': command not found
/etc/bash.bashrc: line 6: $'return\r': command not found
/etc/bash.bashrc: line 7: $'\r': command not found
: invalid shell option namehopt: checkwinsize
/etc/bash.bashrc: line 9: $'\r': command not found
/etc/bash.bashrc: line 11: $'\r': command not found
/etc/bash.bashrc: line 12: syntax error near unexpected token `$'in\r''
'etc/bash.bashrc: line 12: `case ${TERM} in.this is my /etc/bash.bashrc
https://paste.fedoraproject.org/paste/D … 0VVqnuTGlg
Last edited by a7med-7amdy (2019-08-04 22:47:15)
Offline
How exactly did you "restore it to default settings"? This looks like it got edited and spit out through a Windows editor leaving carriage returns strewn about. Reinstall the bash package.
Last edited by V1del (2019-08-02 12:46:40)
Offline
Or another variant install zsh and oh-my-zsh with builtin themes and enjoy. ![]()
Offline
How exactly did you "restore it to default settings"? This looks like it got edited and spit out through a Windows editor leaving carriage returns strewn about. Reinstall the bash package.
no I edited it using kate
Offline
Then that was configured incorrectly, regardless, the easiest here would be reinstalling the bash package and then moving the pacnew file over the incorrect copy.
Offline
Or another variant install zsh and oh-my-zsh with builtin themes and enjoy.
This is terrible advice. There are many threads here involving problems caused by OMZ. It's a mess.
Offline
Then that was configured incorrectly, regardless, the easiest here would be reinstalling the bash package and then moving the pacnew file over the incorrect copy.
excuse me where can I find ( pacnew file)? what's the command exactly
Offline
Offline
And after you do that, edit you'll be better off editing your ~/.bashrc, not the system-wide file.
FWIW, you could likely resolve this also by simply removing the carriage returns:
sed -i 's/\r//g' /etc/bash.bashrcLast edited by Trilby (2019-08-04 16:40:25)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I can't find any (pac) file except this one "/etc/default/grub.pacnew" however
sed -i 's/\r//g' /etc/bash.bashrcresolves my issue, thank you
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Pages: 1