Skip to content

Path color "bleeding" over to wrapped prompt, cursor wrongly positioned in when in git branch #4

@mbokman

Description

@mbokman

Hiya,

First of all kudos on the nice work with agnoster-bash!

I am using this theme since recently and I think I have everything set up correctly but I am frequently encountering two issues:

  • When the path representing the current working directory gets really long and wraps, the blue color bleeds into the second line. It seems [34;43m is not interpreted correctly, as shown in the attached screenshot?
  • When I am in a directory representing a git environment and the prompt displays the branch, the cursor is incorrectly placed (approximately 6 characters to the left), as vaguely shown in the attached screen shot.

I am pretty much a shell/bash noob and I have no idea where to look for a solution.

I am running the latest stable release of iTerm2, using the 13pt Meslo LG M DZ Regular for Powerline font. My terminal emulation is set to ansi. This is a screenshot of a macOS High Sierra beta but I have the same issue on the latest release of Sierra, also when using Terminal.app.

agnoster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions