Comments (7)
You should be able to use shuf
to pick a random line out of the commit_messages.txt
file as shown here:
shuf -n 1 commit_messages.txt
On MacOS, shuf
is available as gshuf
through brew install coreutils
.
For Powershell, my (probably not great) solution:
Get-Content commit-messages.txt | Select -Index (Get-Random (Get-Content commit_messages.txt).Count)
from commitment.
If you are using vscode, you could use my extension :)
https://github.com/Gaardsholt/vscode-whatthecommit
Offline version will come later ;)
from commitment.
My npm package does the trick as well: https://github.com/janraasch/javascript-commitment
And there's a package for Atom
: https://atom.io/packages/commitment
Both work offline.
from commitment.
Okay! (Iām on Linux, BTW.) How would I get it to interpret forms like XNAMEX
, XUPPERNAMEX
, XLOWERNAMEX
, XNUMX
, XNUM30X
, XNUM2,5X
etc. correctly?
from commitment.
I'm not sure whether the easiest way to do that is with a bash find-replace or by refactoring the application so it can be run locally, to be quite honest.
from commitment.
All right, thanks! Feel free to mark this as a feature request.
from commitment.
There are some great alternatives, so I'm going to close this.
from commitment.
Related Issues (20)
- Use arbitrary hash to select commit message. HOT 3
- Update copyright information HOT 2
- Missing License File
- Language HOT 3
- website is down? HOT 1
- website seems down! HOT 1
- Use a random commit message from the CLI HOT 1
- Make whatthecommit always use https HOT 3
- How is this a generator HOT 2
- Add meta data to permalinked messages HOT 1
- Has the whatthecommit.com service stopped working? HOT 2
- json api ? HOT 1
- Website is down HOT 2
- Add CORS headers HOT 2
- whatthecommit.com can't use in China HOT 1
- Consider a page for non explicit commits ? HOT 4
- Recomend my VSCode extension ? HOT 2
- Website is down (504 Gateway Time-out) HOT 1
- Actual issue: whatthecommit.com/humans.txt is a 404 HOT 2
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 commitment.