Comments (3)
This is a very old issue, but I'd like to add this for anyone stumbling upon it from their search engine:
In Linux, you can use logical operators to achieve largely the same functionality.
command && chime || chime error
This would produce the success sound if command
is successful, otherwise it would produce the error sound.
from chime.
Yes I agree that chiming with respect to the exit code would be wonderful. Maybe there's some way to pipe |
or to redirect >
into the chime command?
from chime.
Maybe there's some way to pipe | or to redirect > into the chime command?
Haven't come across anything straightforward. The only way I could think of to getting the exit code it into stdin would be:
% command; echo $? | chime
Another option is for Chime acts as a wrapper for a command, running the command using os.system
, or something like that. It would then have access to the exit code. This seems a bit complex to me, as chime would take on a bit of responsibility that the arbitrary command works as expected, and it might end up being a bit fragile. Open to ideas though!
from chime.
Related Issues (14)
- Can't hear any sounds on Pop! OS 20.04 HOT 7
- Add a material theme HOT 2
- Add the ability to be able to set a default theme HOT 1
- No sound, error: "aplay: not found" HOT 7
- Add chime to Conda/Anaconda command line actions HOT 1
- How to run chime on google colab? HOT 5
- Add a way to add optional arguments to run commands HOT 2
- moye moye
- chime soundboard is down HOT 5
- Calmcode Link HOT 1
- Add a `chime` command for cli usage HOT 8
- Support Poetry >=1.1.0 HOT 1
- Install package in GitHub workflows before running tests
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 chime.