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

osc prompt for Bash. #1632

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mcepl
Copy link
Contributor

@mcepl mcepl commented Sep 24, 2024

Actually, I still think it is kind of working. There certainly could be a space for some optimization, but I have never seen any real perceptible delay.

Fixes: #1379

Equivalent of `__git_ps1` for git.

Suggested use:

    # Prompt for osc
    [[ -f /usr/share/bash-completion/completions/osc-prompt.sh ]] && \
        source /usr/share/bash-completion/completions/osc-prompt.sh

    export PS1='\h:\W$(__osc_prompt) \$ '

Fixes: openSUSE#1379
Unfortunately, it breaks git-prompt.sh, so it was a bitch to debug.
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

Successfully merging this pull request may close these issues.

bash prompt
1 participant