3 ms·
Love it. Very comprehensive. That said - I'm afraid of namespace conflicts and would probably use a "git" prefix instead of just "g". Also - I find "grm" (reb
by dkopi 11y ago
Love it. Very comprehensive.
That said - I'm afraid of namespace conflicts and would probably use a "git" prefix instead of just "g".
Also - I find "grm" (rebase master) somewhat confusing with "gr" (git rm). or even a common alias for "grep".
Perhaps "grb" for "git rebase "
- stocarul 11y agoInitially I taught the same about the namespace conflicts but after using it for a long period I am confident that I can get over it. The git status command is definitely my most used command so it worths to have only one keystroke. You can play with it and see if works for you also. Regarding confusions, you may be right (especially at the beginning), but after some time all used aliases will get hardcoded into your muscle memory, even the longest alias (gprom).
- mchahn 11y agoI have all my aliases in the form of v-object, where v is a one-letter verb and object is the object of that verb, which can also be just one letter. This avoid conflicts because I haven't seen many commands with a hyphen in them. For example, s means start, k means kill, g means git, l means list, p means ps, etc. So an example would be l-bkup which lists my backup log and p-node which shows all the node processes. I find these easy to remember.