railslove / fontello_rails_converter

CLI gem for comfortably working with icon fonts (open, download, convert) from http://fontello.com for usage in Rails apps.
MIT License
73 stars 35 forks source link

zsh: command not found: fontello #21

Closed rootical closed 8 years ago

rootical commented 9 years ago

Hi, thank you for your work. The issue looks similar to #13. I have 0.3.2 version installed and use zsh. Shall i add it manually to path? By the way, bundle exec fontello convert works

kangguru commented 9 years ago

is it installed globally? or via a Gemfile?

is bundle exec fontello working?

rootical commented 9 years ago

It was installed through gem file. bundle exec fontello works

kangguru commented 9 years ago

if you want to use it outside a Gemfile's scope you'll have to install it with:

gem install fontello_rails_converter

kangguru commented 9 years ago

can you past the complete output? including the invoking command

rootical commented 9 years ago

Files are there, sorry. Anyway doesn't matter how i try install via gem install or through bundle, i get zsh: command not found: fontello. I think it's zsh specific issue.

kangguru commented 9 years ago

hm, this is kinda strange :)

[~]$ rvm ruby-2.1.5
[~]$ fontello
zsh: command not found: fontello
[~]$ gem install fontello_rails_converter
Fetching: rubyzip-1.1.6.gem (100%)
Successfully installed rubyzip-1.1.6
Fetching: launchy-2.4.3.gem (100%)
Successfully installed launchy-2.4.3
Fetching: netrc-0.10.2.gem (100%)
Successfully installed netrc-0.10.2
Fetching: rest-client-1.7.2.gem (100%)
Successfully installed rest-client-1.7.2
Fetching: fontello_rails_converter-0.3.2.gem (100%)
Successfully installed fontello_rails_converter-0.3.2
5 gems installed
[~]$ fontello
Run fontello --help for help
[~]$

other ruby executables are working fine? this more or less looks like a messed up $PATH

does reloading the shell any good?

rootical commented 9 years ago

Reloading shell doesn't help. All other ruby executables work fine.

ka8725 commented 9 years ago

@rootical , you have to put the fontello program into bundled commands in zsh. To do this follow the steps:

  1. Update bundler plugin of zsh: cd ~/.oh-my-zsh/plugins/bundler && git fetch origin && git rebase origin/master. I'm not sure which version of the plugin do you have, but if yo have an older version than this commit the following steps won't make regarding effect.
  2. open ~/.zshrc
  3. Add this line into the file: BUNDLED_COMMANDS=(fontello)
  4. Restart the shell: exec $SHELL or just reload the terminal
  5. Go to the project with installed fontello_rails_converter gem and now you are free to use fontello open command
ka8725 commented 9 years ago

Opened pull request for guys from zsh: https://github.com/robbyrussell/oh-my-zsh/pull/3679

jhilden commented 8 years ago

closing this, because there has been no new acitivity