Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: unlink command #14

Open
KutnerUri opened this issue Jun 1, 2021 · 1 comment
Open

feature: unlink command #14

KutnerUri opened this issue Jun 1, 2021 · 1 comment
Assignees

Comments

@KutnerUri
Copy link

KutnerUri commented Jun 1, 2021

it's possible to change the name of the bit command, for example:

bvm config set DEFAULT_LINK bbiitt
bvm link
# command bbiitt is now available

after which, there is not way to remove the old command.
it should be as simple as

rm `which $OLD_COMMAND_NAME`

additionally, we should prompt the user with a hint to remove the old link, like

❯ bvm config set DEFAULT_LINK bbiitt
❯ bvm install
# ...
❯ bvm config set DEFAULT_LINK bit
❯ bvm link
name bit points to version 0.0.406
successfully linked binaries
use `bvm unlink bbiitt` to remove old command
# or
rm `which bbiitt` to remove old command
@KutnerUri
Copy link
Author

also, after changing default link, I still get the old link in the bvm config, so it gets reinstalled every time

bit-bin git/master  
❯ bvm config
{
  BVM_DIR: '/Users/kutner/.bvm',
  DEFAULT_LINK: 'bit',
  'links.bbit': '0.0.406', # reinstalls bbit every time
  'links.bit': '0.0.406'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants