In my project, I write scripts to deploy it to server. Here are the commands:
npm run deploy:internal
npm run deploy:staging
npm run deploy:production
I want to add custom shell commands to magit, so that I can press ddi to run npm run deploy:internal, dds to run npm run deploy:staging, and ddpto runnpm run deploy:production`.
How can I implement this ?
C-c d [isp]in the global keymap, and then you can do it from anywhere? – phils Nov 06 '18 at 02:37dinvokes the diff popup, andd drunsmagit-diff-dwim, so it seems to me that you've chosen key sequences which are incompatible with your goal. – phils Nov 06 '18 at 02:45C-c d [isp]looks good to me. :D – user2331095 Nov 06 '18 at 02:48