1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

How to use ag completion

Last updated at Posted at 2014-05-19

この項、oh-my-zh の git の補完との共存がうまくいかないようです。


こちらを参考に色々したんですが、うまくいかなかったもので…。
http://shigemk2.hatenablog.com/entry/20130828/1377651476

まず、zsh 関数を置く場所を決めます。ここでは ~/.zsh/functions とします。

次に .zshrc に以下のコードを追加します。

fpath=(~/.zsh/functions $fpath)
autoload -U compinit && compinit

次に、指定したディレクトリ (ここでは ~/.zsh/functions) に _ag を置きます。
_ag は以下にあります。
http://github.com/glidenote/ag-zsh-completion

以下を参考にしました。
http://gihyo.jp/dev/serial/01/zsh-book/0005

1
1
1

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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?