lestrratããããã£ã¦ããã¾ããã ããã¶ãåãããã½ã¼ã¹ã³ã¼ããæ¤ç´¢ãã¦èªã¿ãããã³ãã³ãã¯ãªãããªã¼ã¨æã£ã¦ãã¾ãããå人çã«ã¯ackã§æ¤ç´¢ãã¦è¦ã¤ãã£ããã¡ã¤ã«ãlessã§éãã¦åã³ãã¼ã¯ã¼ããå ¥ãã¦å½è©²è¡ã¾ã§ã¸ã£ã³ããã¦ããã®ã§ãããæ¯åæ¯åããã©ãããæãã§ãããã³ãã³ãä¸çºã§ã¤ã³ã¯ãªã¡ã³ã¿ã«æ¤ç´¢ãã¦ãã¼ã¯ã¼ãå¨è¾ºã®ã½ã¼ã¹ã³ã¼ããèªãããã¼ã«ã欲ãããªãã£ã¦æã£ã¦ããã§ãã ã¨ããslackã§ãæ¼æã«ãmattnããã¨ãã»ããã§ãããã¼ãã¨ãã話ããå§ã¾ã£ã¦ãvimã«ããgrepã¨ããç©è²ããªãããããã®ãªããã¼ãã¨ãè¨ã£ã¦ããkanãããã@lestrrat æ¡ä»¶ã ãã£ã¦è¨ãåºãã¦ç§ãããå¬åããã¦ã¤ããã£ãpecoã«å¿ è¦ãªæ©è½ã追å ããã¦ã¾ãããéãw ãããã«picotlsã®éçºãã£ã¬ã¯ããªã§pecoã®ä¸è¡ã©ããã¼peroãèµ·åãããEVP_Digestããæ¤ç´¢ãã¦ã¿
pecoã¨ããã¤ã³ã¿ã©ã¯ãã£ãã«å ¥åããã£ã«ã¿ãã¦åºåããã³ãã³ãããã£ã¦ã使ãå§ãã¦ããã·ã§ã«ã®æä½æ¹æ³ãå¤§å¹ ã«ããããã ãã¶ã©ã¤ããã§ã³ã¸ã³ã°ã ã£ãã æè¿ãã®ã¸ããæµè¡ã£ã¦ãã®ã§ãããè¨äºãããã©ããã£ãããªã®ã§åã使ãéãç´¹ä»ãããã¨æãã pecoãzshã§ä½¿ã 1. peco ghq ghqã使ã£ããã¼ã«ã«ãªãã¸ããªã®çµ±ä¸çã»å¹ççãªç®¡çã«ã¤ãã¦ã®ãã¨ã åã$GOPATHã¯$HOMEã«ãã¦ãã¦ãä»ã®ã¨ããå¥ã«å°ããã¨ã¯ãªãã go getãããghq getããããã¦ç¾ãããã£ã¬ã¯ããªåã£ãä¸ã§ãpecoã«å²ãå½ã¦ã¦ãããC-sã§ããç®çã®ãã£ã¬ã¯ããªéããããã«ãã¦ããã®ã§ããã¡ããã¡ãã½ã¼ã¹ç®¡çã楽ã«ãªã£ãã function peco-src() { local selected_dir=$(ghq list | peco --query "$LBUFFER") if
ã¯ããã« peco, hubã¯åãã使ã£ã¦ã¦ghqã¯åå¨ã¯ç¥ããªããããå¥ã«ãªãã¸ããªç®¡çã¯å¿ è¦ãªãããªã¼ãã¨æã£ã¦ãã®ã§ããã管çãããªãã¸ããªæ°ãå¢ãã¦ãã¦é¢åã«ãªã£ã¦ããã®ã§è©¦ãã«å ¥ãã¦ã¿ããããªãè¯ãã£ãã®ã§ç´¹ä»ãããã¨æãã¾ã ghq, peco, hubã¨ã¯ï¼ ghq ghqã¯ä¸ã§ã軽ãæ¸ããããã«ãªãã¸ããªç®¡çãã¼ã«ã«ãªãã¾ãã ä¾ãã°git cloneã®ä»£ããã«ghq get <repository URL>ã¨ã³ãã³ããæã¤ã¨ghqã«ã¼ããã£ã¬ã¯ããªï¼ããã©ã«ãã§ã¯~/.ghqï¼ä»¥ä¸ã«ãªãã¸ããªãcloneããã ghq listã§ghqã«ã¼ããã£ã¬ã¯ããªä»¥ä¸ã®Gitãªãã¸ããªä¸è¦§ã表示ã ghq look <project>ã§æå®ãããªãã¸ããªã«ç§»åãããã¨ãã£ãããã«ä½¿ãã¾ãã peco pecoã¯æç« ã§èª¬æããã®ã¯é£ããã®ã§ãããCLIä¸ã§ä¾ãã°ps auxãªã©ã®ãã
peco ãå°å ¥ãã | DevAchieve ã§å®ã¯ cdr ãå°å ¥ãã¦ãã¾ããã zsh ã«çµã¿è¾¼ã¾ãã¦ããã³ãã³ãã« cdr ã¨ãã éãããã£ã¬ã¯ããªã®å±¥æ´ãããã£ã¬ã¯ããªãéãã³ãã³ããããã¾ãã ~/.zshrc 㧠cdr ãæå¹ã«ãã¦ãããã°ä½¿ããããã«ãªãã¾ãã $HOME/.cache/shell/ ã¯ç¨æããªãã¨ãããªãã®ã§ mkdir -p $HOME/.cache/shell/ ãã¦ããã¦ä¸ããã # cdr, add-zsh-hook ãæå¹ã«ãã autoload -Uz chpwd_recent_dirs cdr add-zsh-hook add-zsh-hook chpwd chpwd_recent_dirs # cdr ã®è¨å® zstyle ':completion:*' recent-dirs-insert both zstyle ':chpwd:*'
æè¿ããªã«ãã¨pecoã¨ãããã¼ã¯ã¼ããããããã«ãªã£ãã ãã¦ããã¼ã«ã®ãããªã®ã§ãæµè¡ã«ä¹ãé ããªãããã«ãåã試ãã¦ã¿ãï¼ pecoã¨ã¯# pecoã¨ã¯ãã³ãã³ãã©ã¤ã³ããã¤ã³ã¿ã©ã¯ãã£ãã«æ å ±æºãæ¤ç´¢ããããã®ãã¼ã«ã peco/peco ã¿ããªå¤§å¥½ããEmacs helmã®ãããªãã¨ããã³ãã³ãã©ã¤ã³ããå¯è½ã«ãªãã ã¤ã³ã¹ãã¼ã«# pecoã¯goè¨èªã§ãããã¦ãããããã¾ã èªåã®PCã«goãå ¥ã£ã¦ããªãã£ãã®ã§ãã¾ãã¯ã¤ã³ã¹ãã¼ã«ããã ãã¹ã®è¨å®ãããã.zshrcã«è¿½è¨ã # for go lang if [ -x "`which go`" ]; then export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin fi 次ã«ã以ä¸ã®ã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ã
# ### search a destination from cdr list function peco-get-destination-from-cdr() { cdr -l | \ sed -e 's/^[[:digit:]]*[[:blank:]]*//' | \ peco --query "$LBUFFER" } ### search a destination from cdr list and cd the destination function peco-cdr() { local destination="$(peco-get-destination-from-cdr)" if [ -n "$destination" ]; then BUFFER="cd $destination" zle accept-line else zle reset-prompt fi }
#æ¦è¦ ç ½ã£ã¦ãæãã®ã¿ã¤ãã«ã«ãªã£ã¦ãã¾ãã¾ããããããããåã«ã¨ã£ã¦ç¡ãã¦ã¯ãªããªããã®ã«ãªã£ã¦ãã¾ãã åããpecoã使ã£ã¦ãããã§ãããå¨ãã«çµæ§ä½¿ã£ã¦ããªã人ããã¦æãããæè¬ãããã®ã§èªåã®è¦ç´ããå ¼ãã¦æ¸ãã¦èµ·ããã¦ããã¾ãã ã¿ããªä½¿ãããï¼ #pecoã£ã¦ï¼ peco㯠ãæ¨æºå ¥åããããã¼ã¿ãã¤ã³ã¯ãªã¡ã³ã¿ã«ãµã¼ãããã¦é¸æãããåºåãããã ã ã®ã³ãã³ãã§ããã·ã³ãã«ã§ãããã ãããããã§ããã ãã¨ãã¨pythonã§æ¸ãããpecolã¦ã®ããã£ããã§ãããbinaryã§ã®ã欲ããããã¨ãªã£ãã®ã§goã§ä½ããããããã§ã(by github)ãã¤ãã§ã«éçºè ã¯æ¥æ¬äººã§ããisuueã¨ããåºãããããï¼ #ãªã«ãåºæ¥ãã®ï¼ ãããªã®ã(ps auxã®çµæãpecoã§é¸æãã¦åºåãã¦ãã)â ãããªã®â(ghqã®ä¸è¦§ããã¬ãã¸ããªãé¸æãã¦ç§»å)ãåºæ¥ã¾ã (by gi
ãpecoã£ã¦ãã¼ã«ããããã®ãæµè¡ã£ã¦ãããã¨æãã¤ã¤ãå°å ¥ã¨ãé£ãããã¨æã£ã¦å¾åãã«ãã¦ãããã§ãããæ°ãã¤ãããèªåã®æå ã®bashè¨å®ãã¡ã¤ã«ã«pecoã使ãé¢æ°ãå®ç¾©ããã¦ããã®ã§ãæ¹ãã¦åæ©ãããã£ã¦ã¿ã¾ããã 説æã«ä½¿ç¨ãã¦ããã·ã§ã«ã¯ã馴æã¿ã®bashã§ãã #pecoã¨ã¯ GitHubã®pecoã®ãµã¤ã ã¨ã¦ãã·ã³ãã«ãªãã¼ã«ã§ ãæ¨æºå ¥åããåããè¡ãã¼ã¿ãã¤ã³ã¯ãªã¡ã³ã¿ã«ãµã¼ããã¦ãé¸æããè¡ãæ¨æºåºåã«è¿ãã ã³ãã³ãã§ãã ã·ã³ãã«ããã«æ§ã ãªçµã¿åããã§å¹æãçºæ®ãã¾ããããããå ´é¢ã§ã®é¸æè¢ãæ¨æºå ¥åã«æ¸¡ãã¦ãé¸æãããçµæãæ¨æºåºåããåãåã£ã¦å å·¥ãã¦ã³ãã³ãå®è¡ããããã¨ããã®ãåºæ¬çãªæµãã 説æããä¼ãããªãã®ã§å®ä¾ãä½é¨ããã»ããæ©ãããã #peco ã®ã¤ã³ã¹ãã¼ã« pecoã§æ¤ç´¢ããã¨ãpecoã¯Goã§ã§ãã¦ãããã¨ãåºã¦ãã¦ãGoã£ã¦ãªãã
2024å¹´4æ1æ¥ãããSupershipæ ªå¼ä¼ç¤¾ã¯è¦ªä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹æ ªå¼ä¼ç¤¾ã«å¸ååä½µããã¾ããã åä½µã«ä¼´ããåç¶ä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹ã¯ç¤¾åãSupershipã«å¤æ´ããæ°ããªçµå¶ä½å¶ãçºè¶³ãã¾ãããæ¬ä»¶ã«é¢ãã詳細ã¯ããã¬ã¹ãªãªã¼ã¹ãã確èªãã ããã 2024å¹´4æ1æ¥ãããSupershipæ ªå¼ä¼ç¤¾ã¯è¦ªä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹æ ªå¼ä¼ç¤¾ã«å¸ååä½µããã¾ããã åä½µã«ä¼´ããåç¶ä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹ã¯ç¤¾åãSupershipã«å¤æ´ããæ°ããªçµå¶ä½å¶ãçºè¶³ãã¾ããã æ¬ä»¶ã«é¢ãã詳細ã¯ããã¬ã¹ãªãªã¼ã¹ãã確èªãã ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}