BUFFER=$(history -n 1 | eval $tac | peco --query "$LBUFFER" --prompt "HISTORY>")
BUFFER=$(history -n 1 | eval $tac | peco --query "$LBUFFER" --prompt "HISTORY>")
pecoã浸éãå§ãã¦ãããã°ãããï¼ã§ãåæã«ãpecoããã«ããããã¨æã£ããgoãå ¥ã£ã¦ããªãã£ãâ¦ãã¨ãããã¹ããã¡ãã»ãè¦ãããããã«ãªã£ãã qiitaã«æ¸ãã¦ããè¨äºãçµæ§goãã¤ã³ã¹ãã¼ã«ãã¦ã³ã³ãã¤ã«ããã¨ãããã触ãã¦ãããã®ãå¤ãã ãããããã¤ãã§ã ããgoãã¤ã³ã¹ãã¼ã«ããããã¨ããæå³ãªã®ããpecoã¯goããªãã¨ã¤ã³ã¹ãã¼ã«ã§ããªããã¨æã£ã¦ããããªã®ãããããªãã®ã§ãã®è¨äºãæ¸ããã¨ã«ããã pecoã使ãã ããªãgoãã¤ã³ã¹ãã¼ã«å¿ è¦ããå¿ è¦ã¯ãªã pecoã®éçºçã使ãããã®ã§ã¯ç¡ãéããgoæ¬ä½ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ã¯ããã¾ãããgo getããå¿ è¦ãããã¾ãã ãªãªã¼ã¹ãã¡ã¤ã«ãã¤ã³ã¹ãã¼ã«ãã READMEã«ãããããã«pecoã«ã¯ãªãªã¼ã¹çã®ãã¡ã¤ã«ç¾¤ãããã¾ãããã®ä¸ãã使ããããã¼ã¸ã§ã³ã®ãªãªã¼ã¹ãæ¢ãã¦ãã¡ã¤ã«ã解åããpecoã®ãã¤ããªã
ã¡ãã£ã¨åã«percolããpecoã«ä¹ãæããã å®éã«é度測ã£ãããã§ã¯ãªããã©ãpercolã¨æ¯ã¹ã¦æ©ããªã£ãæ°ãããã https://github.com/peco/peco ããã§ãpercolã®æããã ãã©ãpeco-hogehogeã¿ãããªfunctionä½ã£ã¦key-bindè¨å®ãã¦ããã©ãå¤ããªã£ã¦ããã¨è¨æ¶ã®å®¹éãå°ãªãåã¯å ¨ã¦ãè¦ãã¦ãããªãã®ã§ãpecoã«é¢ããfunctionãä¸è¦§ã§è¡¨ç¤ºãã¦ãpecoã§é¸æåºæ¥ãããã«ããã°ä¾¿å©ãªããããã¨æã£ã¦ãpeco-function-listã¨ããã®ä½ã£ã¦ã¿ãã # .zsh/peco-function-list.zsh function peco-function-list () { local selected=$(functions | grep "^.*\ ()\ {" | sed -e "s| () {||"
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}