Conversation
|
@bevanjkay thanks for the PR. This one falls into personal-preference territory though, since |
|
@tw93 Thanks for considering it. Unfortunately, it's actually not as simple as an For anyone else who wants to implement something like this for themselves, the below snippet should work for zsh; if (( $+commands[mo] )); then
mo() {
if [[ "$1" == "analyse" ]]; then
command mo analyze "${@:2}"
else
command mo "$@"
fi
}
fi
if (( $+commands[mole] )); then
mole() {
if [[ "$1" == "analyse" ]]; then
command mole analyze "${@:2}"
else
command mole "$@"
fi
}
fi |
|
@bevanjkay really appreciate you pushing on this. I sat with it again and you were right, it's worth supporting more users instead of asking everyone to carry a local alias. Added a small mention in the README ( Thanks again for the patience here. |
Summary
This PR introduce a simple alias for the
mo analyzecommand tomo analyseto account for spelling the command the British-English way (as I tend to do). The alternative is to alias this command locally, but I don't think there's any harm in adding this to the package.Safety Review
Tests
Safety-related changes