LoginSignup
7
3

More than 3 years have passed since last update.

macOS Big Surでfish shell v3.1.2の補完が遅いのを修正するワークアラウンド

Last updated at Posted at 2020-12-25

追記

fish v3.2.0 がリリースされているので、この対処は現在不要です。

fish v3.2.0で「空エンター入力でfish_preexecが反応しない」という別の問題が発生しているので、そちらの対処は以下の投稿を見てください。

この投稿で使用している言語、ライブラリのバージョン

  • macOS Big Sur 11.1
  • fish shell v3.1.2

事象

Big Surにアップデートしてからfishのタブでコマンドを補完すると1秒程度待たされるようになりました。
この事象は下のPull Requestで修正されておりv3.2.0としてリリースされるっぽいですが、
3.2.0はまだリリースされていないので3.1系でのワークアラウンドを調べました。

ワークアラウンド

上記Pull Requestのコードを ~/.config/fish/functions/ に配置します。

curl https://raw.githubusercontent.com/folke/fish-shell/e89b95f476e427419071141d6aac536777b9e782/share/functions/__fish_apropos.fish > ~/.config/fish/functions/__fish_apropos.fish
curl https://raw.githubusercontent.com/folke/fish-shell/e89b95f476e427419071141d6aac536777b9e782/share/functions/__fish_complete_man.fish > ~/.config/fish/functions/__fish_complete_man.fish
curl https://raw.githubusercontent.com/folke/fish-shell/e89b95f476e427419071141d6aac536777b9e782/share/functions/__fish_describe_command.fish > ~/.config/fish/functions/__fish_describe_command.fish

これでタブの補完が高速になりました。

v3.2.0がリリースされたら

たぶんワークアラウンドは不要になるので消しましょう

cd ~/.config/fish/functions
rm __fish_apropos.fish __fish_complete_man.fish __fish_describe_command.fish
7
3
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
7
3