fugafuga.write

日々のログ

zsh コマンド履歴を絞り込み

コマンド履歴を絞り込む

# マッチしたコマンドのヒストリを表示
autoload history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^p" history-beginning-search-backward-end
bindkey "^n" history-beginning-search-forward-end

tmux など入力してから C-p or C-n を押すと、tmuxを使用したコマンドの履歴を検索できる