Giter Site home page Giter Site logo

gk alias colission about oh-my-bash HOT 2 CLOSED

jawira avatar jawira commented on June 9, 2024
gk alias colission

from oh-my-bash.

Comments (2)

akinomyoga avatar akinomyoga commented on June 9, 2024 1

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.

  • For example, you can disable the gk alias by specifying unalias gk after source /path/to/oh-my-bash.sh in your .bashrc. In this case, even if you update OMB, the line unalias gk is still present in your .bashrc, so the alias will not be enabled.
  • Or you can disable the gk alias by customizing the git plugin following Customization of Plugins and Themes - README. In this case, the customized version of the plugin has always higher precedence than the bundled one, so the gk alias will never be re-enabled by the OMB update.
  • Another way could be to disable the gk alias by directly editing the plugin file in the repository. In this case, the OMB update will be blocked because the OMB update checks if there are any uncommitted changes in the repository and cancels the update if any. You need to commit your changes and, depending on your .gitconfig, you need to manually merge or resolve conflicts using the standard git commands. Anyway, the gk alias will not be re-enabled automatically.

from oh-my-bash.

jawira avatar jawira commented on June 9, 2024

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

from oh-my-bash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.