Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lwe/whatthecommit
Unoffical command line client for https://whatthecommit.com
https://github.com/lwe/whatthecommit
fun shell whatthecommit
Last synced: 3 days ago
JSON representation
Unoffical command line client for https://whatthecommit.com
- Host: GitHub
- URL: https://github.com/lwe/whatthecommit
- Owner: lwe
- License: mit
- Created: 2010-07-15T08:57:46.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2021-07-20T09:00:33.000Z (over 3 years ago)
- Last Synced: 2024-08-02T05:13:10.035Z (3 months ago)
- Topics: fun, shell, whatthecommit
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 159
- Watchers: 6
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
whatthecommit
=============An unoffical command client to fetch a random and silly commit message from
[whatthecommit.com][wtc].> For the sources of [whatthecommit.com][wtc] see
> https://github.com/ngerakines/commitmentFAQ
---#### Is it useful?
Yeah, sure, I mean it's perfect for those cases where you
haven't committed a change in ages and feel too important to use
`git add -i`, so `git commit -am "$(whatthecommit)"` to the rescue :wink:#### How do I install it?
To get up and running as fast as possbile run
```bash
# installs to /usr/local/bin/whatthecommit
curl -L https://github.com/lwe/whatthecommit/raw/master/whatthecommit >/usr/local/bin/whatthecommit
chmod 0755 /usr/local/bin/whatthecommit
```#### Are there any options?
Sure, check `whatthecommit -h` for usage and options.
#### Do I need this? / Alternatives
No, [whatthecommit.com][wtc] provides since some time a
plain text interface at https://whatthecommit.com/index.txt - so a good
alternative would be to create something like:```bash
# .bashrc / .zshrc or whatever
function whatthecommit() {
curl --silent --fail https://whatthecommit.com/index.txt
}
```...or how about a git alias?
```bash
# From https://github.com/ngerakines/commitment/issues/69#issuecomment-91053061
git config --global alias.yolo '!git add -A && git commit -m "$(curl --silent --fail https://whatthecommit.com/index.txt)"'
```Thanks to [m13253](https://github.com/m13253) for the index.txt trick.
[wtc]: https://whatthecommit.com/