LoginSignup
0
0

More than 3 years have passed since last update.

Zsh: sudo でも補完を有効にする

Last updated at Posted at 2021-04-04

自作コマンドを sudo をつけて実行しようとしたときに補完できない場合は、以下を ~/.zshrc に追加する。

~/.zshrc
+ zstyle ':completion:*:sudo:*' command-path $path

$PATH ではなく $path であることに注意。

参考サイト

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