cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.85k stars 178 forks source link

Failed to init for bash #128

Closed ChenhuiZhang closed 3 years ago

ChenhuiZhang commented 3 years ago

After I run "brew install mcfly", I got this:

ONE MORE STEP!

Add the following to the end of your ~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish file.

Bash: eval "$(mcfly init bash)"

Zsh: eval "$(mcfly init zsh)"

Fish: mcfly init fish | source mcfly_key_bindings ==> Summary 🍺 /home/linuxbrew/.linuxbrew/Cellar/mcfly/v0.5.3: 3 files, 5.0MB, built in 1 second

Then I run mclfy init bash, it report below error:

chenhuiz@pccng2484z17:~$ eval "$(mcfly init bash)" error: Found argument 'init' which wasn't expected, or isn't valid in this context

USAGE: mcfly [FLAGS] [OPTIONS]

For more information try --help

So does anyone know what is wrong?

b3nj5m1n commented 3 years ago

You're running an outdated version.

🍺 /home/linuxbrew/.linuxbrew/Cellar/mcfly/v0.5.3: 3 files, 5.0MB, built in 1 second

You're on 0.5.3, init was added in 0.5.4, the homebrew formula hasn't been updated to download version 0.5.4 yet. (It's marked as pre-release on GitHub)

Build from source or wait and source the bash file yourself.

cantino commented 3 years ago

Sorry, I’ll push the new version to homebrew shortly.

On Mon, Mar 1, 2021 at 6:28 AM b3nj5m1n notifications@github.com wrote:

You're running an outdated version.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cantino/mcfly/issues/128#issuecomment-787990491, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUO647ZX3Y66FNMEBYYU3TBOQCFANCNFSM4YMHAAJQ .

cantino commented 3 years ago

Released: https://github.com/cantino/mcfly/releases/tag/v0.5.4

ChenhuiZhang commented 3 years ago

Thanks! Now it works.

cantino commented 3 years ago

Great!

On Mon, Mar 1, 2021 at 5:59 PM Hermes Zhang notifications@github.com wrote:

Thanks! Now it works.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/cantino/mcfly/issues/128#issuecomment-788516053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUO6YGXYVLIVXUUGDPAQLTBRBBNANCNFSM4YMHAAJQ .

jmlucjav commented 2 years ago

hi,

I just installed in WSL in windows 10, with the install script, and I get something very similar, anyone knows what's up?

error: Found argument 'is' which wasn't expected, or isn't valid in this context

USAGE:
    mcfly [FLAGS] [OPTIONS] <SUBCOMMAND>

For more information try --help

thanks