Closed Mte90 closed 8 years ago
Unfortunately, the prompt operates by overriding PS1. It's unclear but did you want help debugging or uninstalling sexy-bash-prompt
?
Only how to change the code so the PS1 remain like the original but only the git commands will be colorful.
I still don't understand. What do you mean by "the original" and "git commands will be colorful"? Can you provide examples?
With that software I get
root at siduction in /tmp
# quit
but the original on my system is
root@siduction:/tmp#
Ah, I see so you want the coloring but not the "at"/"in"/multiline format.
I can think of 2 options:
.bash_prompt
and then override PS1
again with your custom format
/etc/bashrc
PS1='\h:\W \u\$ '
man bash
Ok thanks for the info.
In my case is '${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$( sexy_bash_prompt_is_on_git && \
echo -n \" \[$sexy_bash_prompt_preposition_color\]on\[$sexy_bash_prompt_reset\] \" && \
echo -n \"\[$sexy_bash_prompt_git_status_color\]\$(sexy_bash_prompt_get_git_info)\" && \
echo -n \"\[$sexy_bash_prompt_git_progress_color\]\$(sexy_bash_prompt_get_git_progress)\" && \
echo -n \"\[$sexy_bash_prompt_preposition_color\]\")\[$sexy_bash_prompt_reset\]\
\[$sexy_bash_prompt_symbol_color\]$sexy_bash_prompt_symbol \[$sexy_bash_prompt_reset\]"
Ok now i have changed in that way and is perfect for my needs.
Wonderful, I'm glad to hear it all worked out. Thanks for posting your result so others can reuse it =)
Is possible to not change the PS1 output of the shell? in my case is:
mte90@siduction:~$
but with that became#