Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu colorized prompt PS1 causes export command to be outputted at start of every shell #50

Open
patflynn opened this issue Jan 31, 2017 · 1 comment

Comments

@patflynn
Copy link

I'm a bit clueless when it comes to Bash/Linux so this is probably due to user error, but when I use the colorized ubuntu PS1 I see the following:

�]0;export PS1="\${debian_chroot:+(\$debian_chroot)}\[\]\u@\h\[\]:\[\]\w\[\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "user@host:~ $

whenever I start a new shell.

I copy and pasted:
export PS1="\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "

Directly from the instructions. The non-colorized version has no issue.

@patflynn
Copy link
Author

patflynn commented Jan 31, 2017

Just to be more explicit. I copy and pasted:

export GITAWAREPROMPT=~/.bash/git-aware-prompt
source "${GITAWAREPROMPT}/main.sh"

export PS1="\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "

into my .bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant