LoginSignup
2
2

More than 5 years have passed since last update.

話題騒然のgithubignore.io表記のコマンドがzshで動かない

Posted at

上の投稿で知りましたが、githubignore.io便利ですね。

こちらのコマンドを入れてみたんですが、zshのコマンドが
表記の通りにリダイレクトしても上手く動かなかったんで、メモ。

Zsh
$ echo "function gi() { curl http://gitignore.io/api/\$@ ;}"  >> ~/.zshrc && . ~/.zshrc

このようにエスケープしたら上手く動きました。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2