ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.54k stars 626 forks source link

gk alias colission #488

Closed jawira closed 8 months ago

jawira commented 8 months ago

There's an alias collision from oh-my-bash "gk" alias https://github.com/ohmybash/oh-my-bash/blob/07d9382938b3c82b2d5daad923ccb4890a12c350/plugins/git/git.plugin.sh#L375

and Gitkraken cli tool https://www.gitkraken.com/cli wich also uses "gk".

I can disable "gk" alias myself, but it will be re-enabled with the next update.

Is there a way to set some sort of precedence, use current command "gk" instead of alias if the command exists ?

Thanks in advance.

akinomyoga commented 8 months ago

Unfortunately, as far as we define aliases with short names, any aliases can conflict with aliases and commands from other frameworks. In this sense, renaming alias gk to another name wouldn't resolve the root cause of the problem. Actually, possible name conflicts are inevitable in principle with any names of aliases.

Then, what we can do here is to ask each user to choose a preferred one and resolve the conflicts.

I can disable "gk" alias myself, but it will be re-enabled with the next update.

Did you actually confirm that the gk alias is re-enabled by the oh-my-bash (OMB) update? It depends on how you disable the gk alias, but I don't think it will be re-enabled with the OMB update.

jawira commented 8 months ago

I wasn't expecting such a complete answer :) I will try your solutions. Thank you !