Giter Site home page Giter Site logo

Comments (14)

ndsvw avatar ndsvw commented on May 26, 2024 4
➜  ~ brew upgrade goto
==> Upgrading 1 outdated package:
goto 1.2.3 -> 2.0.0
==> Upgrading goto 
==> Downloading https://github.com/iridakos/goto/archive/v2.0.0.tar.gz
==> Downloading from https://codeload.github.com/iridakos/goto/tar.gz/v2.0.0
######################################################################## 100.0%
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/goto/2.0.0: 6 files, 20.8KB, built in 10 seconds
Removing: /usr/local/Cellar/goto/1.2.3... (6 files, 18.9KB)
Removing: /Users/-/Library/Caches/Homebrew/goto--1.2.3.tar.gz... (667KB)
==> Checking for dependents of upgraded formulae...
==> No dependents found!
➜  ~ 

but still:

➜  ~ goto
zsh: command not found: goto
➜  ~ 

from goto.

trifygri avatar trifygri commented on May 26, 2024 3

This solved it for me:

add this to your ~./zshrc file and source it or start a new terminal session

autoload bashcompinit
bashcompinit
source /usr/local/etc/bash_completion.d/goto.sh

goto <tab>

showed all my previously defined aliases

but trying to call them errored

goto mydir
goto error: unregistered alias mydir

I had to reregister my aliases with

goto -r <alias> <directory>

and this solved it.

helpful link Can a Bash tab-completion script be used in zsh?

from goto.

iridakos avatar iridakos commented on May 26, 2024 1

Hi @ndsvw ,

I will try to to the same asap in my mac and let you know.

Thanks for the detailed feedback.

from goto.

bluespore avatar bluespore commented on May 26, 2024 1

Reporting that I had the same issue, and I understand this doesn't help the install with brew, but I did have success simply using the manual method FWIW. So you can use it that way in the meantime @ndsvw

from goto.

mjwwit avatar mjwwit commented on May 26, 2024

I just ran into this issue, and it appears that the actual binary is not part the things installed; /usr/local/Cellar/goto/1.2.3 does not contain a binary.
-- EDIT --
Of course by binary I mean the shell script 😅

from goto.

ndsvw avatar ndsvw commented on May 26, 2024

@iridakos, can you update the brew-version of goto?
The lastest version of goto on brew is 1.2.3 (from 14 Mar 2018).

from goto.

iridakos avatar iridakos commented on May 26, 2024

Hi @ndsvw ,

I created a release and I will try to update the version in Brew as well. Unfortunately I no longer have access to a MacOS system and I can't test if the functionality is working on ZSH there. Do you have any updates on this?

from goto.

iridakos avatar iridakos commented on May 26, 2024

@ndsvw Here's the pull request to Homebrew Homebrew/homebrew-core#49477

from goto.

juliofalbo avatar juliofalbo commented on May 26, 2024

Having the same issue here.

zsh: command not found: goto

from goto.

prvn avatar prvn commented on May 26, 2024

Having same issue

OS: macos 10.15.6
Brew: 2.5.1
goto: 2.0.0

from goto.

dcchambers avatar dcchambers commented on May 26, 2024

If you're still using bash with MacOS instead of zsh and are encountering this error, you can add this to your .bash_profile to fix this error:

source $(brew --prefix)/etc/bash_completion.d/goto.sh

from goto.

davidgourde avatar davidgourde commented on May 26, 2024

I can source goto.sh to have the script works, but I cannot get the auto-completion work at all. When I press after writing "goto ", I get the auto-completion of the current folder's files instead... I tried all the solutions listed here. 😭

Note: The same .zshrc lines works on my Windows + WSL machine, but not on my MacOS (Monterey)

from goto.

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.