nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
85.32k stars 3.43k forks source link

rbenv install #888

Open AlexWayfer opened 5 years ago

AlexWayfer commented 5 years ago

The output of thefuck --version:

The Fuck 3.28 using Python 3.7.2 and Fish Shell 3.0.1

Your system (Debian 7, ArchLinux, Windows, etc.):

Arch Linux

How to reproduce the bug:

> rbenv install 2.6.1
ruby-build: definition not found: 2.6.1

See all available versions with `rbenv install --list'.

If the version you need is missing, try upgrading ruby-build:

  cd /home/alex/.rbenv/plugins/ruby-build && git pull && cd -

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

No fucks given

(I think, debug is not necessary)

Expected fuck:

cd /home/alex/.rbenv/plugins/ruby-build && git pull && cd -

(as suggested in the rbenv output)

AlexWayfer commented 5 years ago

The same for nodenv, if possible:

> nodenv install
node-build: definition not found: 11.13.0

See all available versions with `nodenv install --list'.

If the version you need is missing, try upgrading node-build:

  cd /home/alex/.nodenv/plugins/node-build && git pull && cd -
abramzog commented 5 years ago

I would like to work on it.

BenjaminLiuPenrose commented 4 years ago

The output of thefuck --version:

The Fuck 3.28 using Python 3.7.2 and Fish Shell 3.0.1

Your system (Debian 7, ArchLinux, Windows, etc.):

Arch Linux

How to reproduce the bug:

> rbenv install 2.6.1
ruby-build: definition not found: 2.6.1

See all available versions with `rbenv install --list'.

If the version you need is missing, try upgrading ruby-build:

  cd /home/alex/.rbenv/plugins/ruby-build && git pull && cd -

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

No fucks given

(I think, debug is not necessary)

Expected fuck:

cd /home/alex/.rbenv/plugins/ruby-build && git pull && cd -

(as suggested in the rbenv output)

Any one can merge the changes and make thefuck works with rbenv and nodenv?

AlexWayfer commented 4 years ago

New versions of rbenv (and nodenv) has such output:

git -C /home/alex/.rbenv/plugins/ruby-build pull