LoginSignup
6
5

More than 5 years have passed since last update.

一度移動したディレクトリに対して、ディレクトリ名の一部を入力するだけで移動できるautojump

Posted at

autojumpとは

autojump は、zshにおける効率的なディレクトリ移動を支援するためのプラグインです。

一度あるディレクトリに移動したあとは、そのディレクトリ名の一部だけを入力すれば移動が出来ます。

たとえば、 cd /usr/local/apache2/conf/extra した後、は
j ex と入力するだけで、先ほどのディレクトリに移動が出来ます。

コマンドは j になります。

複数の該当候補がある場合は、タブを押して選択することが出来ます。

インストール

まずは、git cloneをします。

$ mkdir .zsh
$ cd .zsh
$ git clone git://github.com/joelthelion/autojump.git
$ cd autojump
$ ./install.py   

Please manually add the following line(s) to ~/.zshrc:

        [[ -s /home/sato/.autojump/etc/profile.d/autojump.sh ]] && source /home/sato/.autojump/etc/profile.d/autojump.sh

        autoload -U compinit && compinit -u

Please restart terminal(s) before running autojump.
$ 

次に 上記インストールの最後に表示された内容を、.zshrcに記載します。

[[ -s /home/sato/.autojump/etc/profile.d/autojump.sh ]] && source /home/sato/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u
6
5
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
6
5