Closed mattez closed 9 years ago
I had the same problem recently. Comment out the lines regarding git-aware-prompt in .profile and add them to your .bash_profile. I think this problem was raised after an update. Hope that help you!
2015-03-12 9:09 GMT-03:00, Matěj Kříž notifications@github.com:
im getting error when login to ubuntu. I suspect git-aware-prompt. could it be?
Im not a progamator, but I was searching and I found this. It can not be a solution? Testing for an interactive shell?
# Test for an interactive shell. There is no need to set anything # past this point for scp and rcp, and it's important to refrain from # outputting anything in those cases. if [[ $- != *i* ]] ; then # Shell is non-interactive. Be done now! return fi
Reply to this email directly or view it on GitHub: https://github.com/jimeh/git-aware-prompt/issues/19
Sebastián
Hmm, it does look like it's due to git-aware-prompt's use of the tput
command. I'll look into a solution.
In the meantime, either try @srvanrell's solution of putting the git-aware-prompt related stuff in ~/.bash_profile
instead of ~/.profile
. Or if that doesn't work, try replacing it with something like this:
if [ -n $TERM ]; then
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
fi
@srvanrell's solution WORKs fine. Great. Thank you @srvanrell. Thank you @jimeh. I think this issue can be closed? For me already is. :]
Glad to hear that!
By the way, I'm using Ubuntu (14.04) too
Sebastián El 12/03/2015 10:32, "Matěj Kříž" notifications@github.com escribió:
@srvanrell https://github.com/srvanrell's solution WORKs fine. Great. Thank you @srvanrell https://github.com/srvanrell. Thank you @jimeh https://github.com/jimeh.
— Reply to this email directly or view it on GitHub https://github.com/jimeh/git-aware-prompt/issues/19#issuecomment-78479382 .
I forgot to mention it: YES I'm using Ubuntu 14.04 LTS @srvanrell: (I don't know how you can know it :)
@mattez (just a guess by what you post in your first message)
This will hopefully be avoided in the future thanks to da05b8dbb8325a4be669686e2edc09602d08d58a and some re-wording of the readme.
I'm getting error when loging to Ubuntu 14.04 LTS. I suspect git-aware-prompt. could it be?
Im not a progamator, but I was searching and I found this. It can not be a solution? Testing for an interactive shell?