Comments (4)
I don't know why it behaves that way, but I'd suggest you try iTerm2 instead. Much better than Terminal.
from bash-powerline.
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.
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.
@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)
- PS1 for short prompt possible? HOT 1
- Thing of beauty
- git info background blue too bright HOT 8
- Doesn't seem to start up in WSL
- Slow all of a sudden. HOT 1
- Branch not showing on system with older versions of git HOT 1
- support for sourced python virtual environments HOT 1
- an wierd "a" infront of github tags HOT 1
- Would you please use the following code HOT 2
- Project activity HOT 1
- Can't work in Mac HOT 1
- Show git stash status?
- terminal title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash-powerline.