Comments (3)
@krader1961 thanks for the report - I had never noticed the first race condition since I don't use a right-side prompt :)
I agree with your proposed solution, so I have added it to the module. I think this might also be "good enough" without calling gitstatus:start
after load, since this would also need to check if any git segments are present, and it might still miss if the segments are changed afterwards. Assuming git segments are only on one side, then the new check in -build-chain
will also ensure gitstatus
is only started once.
I would appreciate your feedback if you continue to see some problems.
from elvish-themes.
I updated to the current version a few minutes ago and things look good. No unexpected exceptions and the new chain:prompt-segment-delimiters
var works fine.
from elvish-themes.
@krader1961 I was thinking that if someone wanted to have git segments on both sides, you could work around the issue by manually starting gitstatusd
after loading the theme, e.g:
use github.com/zzamboni/elvish-themes/chain
chain:gitstatus:start
I am going to document this, in case anyone encounters this issue.
from elvish-themes.
Related Issues (9)
- Current HEAD Elvish fails on line 197 - use of reserved keyword tmp HOT 2
- Visualise exit code
- Add a licence or copyright notice HOT 1
- Error using chain theme: variable $nil not found HOT 2
- Chain theme errors with Elvish 0.13 with default prompts HOT 3
- Timestamp segment in chain theme defaults to grey which is no longer valid HOT 1
- Add feature for modifying function prompt-segment output HOT 1
- Bug in fn prompt-segment HOT 4
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 elvish-themes.