38. pecoã§ä½¿ãé¢æ°ãä½ã Ctrl+x Ctrl+rã§å®è¡ããä¾ ä½ãã®ãã¼ãã¤ã³ãã§é¢æ°ãå¼ã³åºã ã¨ãã¯ããæ¸ã function peco-execute-history() { # ãã®ä¸ã«å¦çãæ¸ã } zle -N peco-execute-history bindkey '^x^r' peco-execute-history 39. pecoã§ä½¿ãé¢æ°ãä½ã Ctrl+x Ctrl+rã§å®è¡ããä¾ function peco-execute-history() { local item item=$(builtin history -n -r 1 | peco) if [[ -z "$item" ]]; then return 1 fi BUFFER="$item" zle accept-line } zle -N peco-execute-history bindk
{{#tags}}- {{label}}
{{/tags}}