0
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?

【Mac】頻繁に使用するディレクトリに簡単に移動する方法

Posted at

zoxideを使用すると頻繁に使用するディレクトリに簡単に移動できます。

インストール

zoxideをインストールする。

brew install zoxide 

~/.zshrcに以下を追加する。

~/.zshrc
eval "$(zoxide init zsh)"

fzfをインストールする。

brew install fzf

使い方

名前にfooを含むディレクトリの中で、最もランクの高いディレクトリに移動

z foo

名前にfoobarを含む最高ランクのディレクトリに移動。

z query foo bar

対話型ディレクトリ検索を開始する(fzfが必要)。

zi foo

ディレクトリを追加するか、ランクを上げる。

zoxide add path/to/directory

zoxideのデータベースからディレクトリを削除。

zoxide remove path/to/directory
0
1
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
0
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?