history | nl | less
これで出る。
https://github.com/fish-shell/fish-shell/issues/2200
標準コマンドをオーバーライド
.config/fish/config.fish
をいじる。
function history builtin history | nl | less end
builtin
を書くのはデフォルトのhistory
コマンドを呼ばない仕組みだと思う。
さもないと再帰的に自分を呼び続ける。
zsh から fish にした。 - yoshiori.github.io
fzfの場合
~/.config/fish/functions/__fish_history.fish
をいじる
eval $QUERY_CMD ~/.local/share/fish/fish_history | grep "^\- cmd: " | sed 's/\- cmd: //'
に| nl
を挟んで
eval $QUERY_CMD ~/.local/share/fish/fish_history | grep "^\- cmd: " | nl | sed 's/\- cmd: //'
にした。