Code Monkey home page Code Monkey logo

Comments (8)

m42e avatar m42e commented on August 18, 2024

you may try aliasing:

alias sha1='shasum -a 1'

If shasum is available but sha1 isn't.

from zgen.

saltmade avatar saltmade commented on August 18, 2024

Hmm, tried that but just got

######################################################################## 100.0%
Checksums do not match.
Binary download failed, trying source.
######################################################################## 100.0%
Checksums do not match.
nvm: install v0.11.16 failed!

I can run sha1 from the terminal, nvm just doesn't seem about to find it.

from zgen.

m42e avatar m42e commented on August 18, 2024

Would you please provide the output of zgen list ?

from zgen.

saltmade avatar saltmade commented on August 18, 2024
$ zgen list
#
# Generated by zgen.
# This file will be overwritten the next time you run zgen save
#
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/oh-my-zsh.sh"
source "/Users/jeffheaton/.zgen/zsh-users/zsh-syntax-highlighting-master/zsh-syntax-highlighting.plugin.zsh"
source "/Users/jeffheaton/.zgen/zsh-users/zsh-history-substring-search-master/zsh-history-substring-search.plugin.zsh"
source "/Users/jeffheaton/.zgen/unixorn/rake-completion.zshplugin-master/rake_completion.zsh"
source "/Users/jeffheaton/.zgen/unixorn/autoupdate-zgen-master/autoupdate-zgen.plugin.zsh"
source "/Users/jeffheaton/.zgen/unixorn/jpb.zshplugin-master/jpb.plugin.zsh"
source "/Users/jeffheaton/.zgen/djui/alias-tips-master/alias-tips.plugin.zsh"
source "/Users/jeffheaton/.zgen/unixorn/git-extra-commands-master/git-extra-commands.plugin.zsh"
source "/Users/jeffheaton/.zgen/skx/sysadmin-util-master/sysadmin-util.plugin.zsh"
source "/Users/jeffheaton/.zgen/peterhurford/git-it-on.zsh-master/git-it-on.plugin.zsh"
source "/Users/jeffheaton/.zgen/StackExchange/blackbox-master/blackbox.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/pip/pip.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/bundler/bundler.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/sudo/sudo.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/aws/aws.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/brew/brew.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/chruby/chruby.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/colored-man/colored-man.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/git/git.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/github/github.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/knife_ssh/knife_ssh.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/osx/osx.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/python/python.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/rsync/rsync.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/screen/screen.plugin.zsh"
source "/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/sublime/sublime.plugin.zsh"
source "/Users/jeffheaton/.zgen/sharat87/pip-app-master/pip-app.sh"
source "/Users/jeffheaton/.zgen/chrissicool/zsh-256color-master/zsh-256color.plugin.zsh"
source "/Users/jeffheaton/.zgen/srijanshetty/docker-zsh-master/docker.plugin.zsh"
source "/Users/jeffheaton/.zgen/RobSis/zsh-completion-generator-master/zsh-completion-generator.plugin.zsh"
source "/Users/jeffheaton/.zgen/caiogondim/bullet-train-oh-my-zsh-theme-master/bullet-train.zsh-theme"

#
# Add our plugins and completions to fpath
#
fpath=(/Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master /Users/jeffheaton/.zgen/zsh-users/zsh-syntax-highlighting-master /Users/jeffheaton/.zgen/zsh-users/zsh-history-substring-search-master /Users/jeffheaton/.zgen/unixorn/rake-completion.zshplugin-master /Users/jeffheaton/.zgen/unixorn/autoupdate-zgen-master /Users/jeffheaton/.zgen/unixorn/jpb.zshplugin-master /Users/jeffheaton/.zgen/djui/alias-tips-master /Users/jeffheaton/.zgen/unixorn/git-extra-commands-master /Users/jeffheaton/.zgen/skx/sysadmin-util-master /Users/jeffheaton/.zgen/peterhurford/git-it-on.zsh-master /Users/jeffheaton/.zgen/StackExchange/blackbox-master /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/pip /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/bundler /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/sudo /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/aws /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/brew /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/chruby /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/colored-man /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/git /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/github /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/knife /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/knife_ssh /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/osx /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/python /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/rsync /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/screen /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/sublime /Users/jeffheaton/.zgen/robbyrussell/oh-my-zsh-master/plugins/vagrant /Users/jeffheaton/.zgen/sharat87/pip-app-master /Users/jeffheaton/.zgen/chrissicool/zsh-256color-master /Users/jeffheaton/.zgen/zsh-users/zsh-completions-master/src /Users/jeffheaton/.zgen/srijanshetty/docker-zsh-master /Users/jeffheaton/.zgen/RobSis/zsh-completion-generator-master /Users/jeffheaton/.zgen/caiogondim/bullet-train-oh-my-zsh-theme-master ${fpath})

from zgen.

m42e avatar m42e commented on August 18, 2024

Hmm, what does which sha1 give you? Of course without the alias I recommended.

from zgen.

saltmade avatar saltmade commented on August 18, 2024
$ which sha1
sha1 () {
    echo -n $1 | openssl sha1 /dev/stdin
}

Thanks for all the help!

from zgen.

m42e avatar m42e commented on August 18, 2024

well that's is the problem. :)

nvm tries to find a sha1 which is not aliased (TRUE, because it is not an alias it is a function) and which is availabe (TRUE, as it is defined). Then they explicit start it with command (which will not use alias or functions).

Possible solutions:

  • Search your ~/.zgen folder for a file creating this function. And get rid of it
  • Create a ticket for nvm to improve the detection.
  • simply add unset -f sha1 to your zshrc

from zgen.

saltmade avatar saltmade commented on August 18, 2024

I used your last solution and I'll do the first later. I don't think nvm wants to do much work around aliasing from what I've seen in the comments. Brilliant! Thanks again 👍.

from zgen.

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.