LoginSignup
12
12

More than 5 years have passed since last update.

zshでのzコマンドの入れかた

Posted at

移動したディレクトリの履歴を取ってくれるzコマンドをインストールする。

$ brew install z

~/.zshrcに追記

. /usr/local/etc/profile.d/z.shfunction _Z_precmd {  z --add "$(pwd -P)" 61 }precmd_functions=($precmd_functions _Z_precmd)

再読み込み

$ source ~/.zshrc

ちなみに

オリジナルだとzshと相性が悪いらしいので、フォークされたものを使ったほうがいいらしい。
でもHomebrewのフォーミュラを見るとオリジナルの方を向いているので、何が違うんだろう。

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