Coder Social home page Coder Social logo

Comments (4)

riobard avatar riobard commented on June 22, 2024

I don't know why it behaves that way, but I'd suggest you try iTerm2 instead. Much better than Terminal.

from bash-powerline.

protoiyer avatar protoiyer commented on June 22, 2024

Ok. Thanks for looking into this. I revisited some SO.com posts that I was checking in the morning, and from one of them got the missing piece that resolves the issue (towards the end - line# 156):

    # PROMPT_COMMAND=ps1                   # <- existing code, commented out
    PROMPT_COMMAND="ps1; $PROMPT_COMMAND"  # <- needed for Mac OS Sierra

from bash-powerline.

narkowicz avatar narkowicz commented on June 22, 2024

Following up after encountering on a fresh install - this is something that will continue to affect the default behaviour in Terminal.app on macOS / X which sets PROMPT_COMMAND to update_terminal_cwd.

@riobard would you consider updating (or accepting a PR) so that PROMPT_COMMAND is appended as described by @protoiyer in order to solve this problem on macOS? i.e.

PROMPT_COMMAND="$PROMPT_COMMAND; ps1"

This shouldn't hurt other platforms and would play nice with any other prompt commands - unless there is a reason for overriding on some configurations?

Alternatively, suggest adding a description to the README as a reminder to others and future self.

Edit: update_terminal_cwd also supports setting the window bar title to basename pwd (with icon) which provides access to the directory in Finder (via ⌘ click), drag and drop of path, etc.
(https://apple.stackexchange.com/a/139808)

from bash-powerline.

riobard avatar riobard commented on June 22, 2024

@narkowicz I don’t personally use Terminal.app, but a PR to fix the issue would be highly appreciated :)

from bash-powerline.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.