LoginSignup
3
0

More than 5 years have passed since last update.

fish + fzf でコマンド履歴を検索

Last updated at Posted at 2017-02-22

fisherman 等を入れても良いのだが、あまり余計なものを入れたくなかったので。

~/.config/fish/config.fish
function fish_user_key_bindings
  bind \cr __fzf_history
end

function __fzf_history
  history | fzf-tmux -d40% +s +m --tiebreak=index --query=(commandline -b) \
    > /tmp/fzf
  and commandline (cat /tmp/fzf)
end
3
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
3
0