Comments (3)
Thank you for the suggestion!
I've added a link to this issue from the docs.
Fixed in 8f7b36a
from devmoji.
I'm guessing OP was running macOS. On Linux you need to use echo -e
in order to enable interpolation of backslash escapes. Then their hook works great. Another good reason not to use Husky is it falls apart when you try and perform an interactive rebase and that's frustrating when you're right at the finish line.
from devmoji.
I agree with @vhscom, it will fail on Linux if echo
does not have the -e
option. So,
echo -e "#\!/bin/sh\n\nCOMMIT_MSG_FILE=\$1\nCOMMIT_MSG=\$(cat \$COMMIT_MSG_FILE)\n\necho \"\${COMMIT_MSG}\" | devmoji > \$1" > .git/hooks/prepare-commit-msg
from devmoji.
Related Issues (20)
- `--commit` not working as expected HOT 1
- Question about emoji linting HOT 1
- Dependency Dashboard
- Could you add an emoji for the revert code?
- adding a unicode emoji
- Adding WIP Commits
- Bug: doesn't work, if scope has spaces
- `i18n` type doesn't work
- Adds TypeScript support for configuration file HOT 1
- [Question] Devmoji and Commitizen HOT 4
- --lint shouldn't fail on merge commit message HOT 1
- devmoji for bots HOT 2
- Lowercase scope HOT 1
- Support for second variant of BREAKING CHANGE HOT 1
- devmoji type(scope) not blue when using `--log` option HOT 3
- refactor and config alignment is off when displayed with devmoji -l HOT 2
- [compat] Vim Fugitive won't work with pre-commit-msg hook HOT 2
- Action Required: Fix Renovate Configuration
- Add support for ignoring !fixup commits HOT 1
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 devmoji.