{"id":25264,"date":"2014-11-22T12:27:20","date_gmt":"2014-11-22T03:27:20","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=25264"},"modified":"2014-11-22T12:30:04","modified_gmt":"2014-11-22T03:30:04","slug":"peco","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/peco\/","title":{"rendered":"\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u9769\u547d\u5150\uff01\u9078\u629e\u5f0f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5c0e\u5165\u3059\u308b\u300cpeco\u300d"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/11\/Ipeco.jpg\" alt=\"Peco\" title=\"peco.jpg\" border=\"0\" width=\"546\" height=\"366\" \/><\/p>\n<p>\u300c<a href=\"https:\/\/github.com\/peco\/peco\">peco<\/a>\u300d\u306f\u3042\u3089\u3086\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u51fa\u529b\u3092\u9078\u629e\u53ef\u80fd\u306b\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u9769\u547d\u5150\u3068\u3057\u3066\u4eca\u9759\u304b\u306a\u30d6\u30fc\u30e0\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>peco\u3092\u4f7f\u3048\u3070\u3001\u4f8b\u3048\u3070\u300c<span class=\"mybold\">ps aucx | peco<\/span>\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6a19\u6e96\u51fa\u529b\u3055\u308c\u305f\u30d7\u30ed\u30bb\u30b9\u4e00\u89a7\u304c\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u9078\u629e\u53ef\u80fd\u306b\u306a\u308a\u3001\u30ea\u30bf\u30fc\u30f3\u30ad\u30fc\u3092\u62bc\u3059\u3053\u3068\u3067\u7279\u5b9a\u306e\u884c\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u9078\u629e\u7d50\u679c\u3092\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u306b\u3046\u307e\u304f\u6e21\u3059\u3053\u3068\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u3088\u308a\u4fbf\u5229\u306b\u5229\u7528\u3057\u3088\u3046\uff01\u3068\u3044\u3046\u30b3\u30f3\u30bb\u30d7\u30c8\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u300cps aucx | peco\u300d\u3060\u3068\u5b9f\u7528\u6027\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30b7\u30a7\u30eb\u3068\u7d44\u5408\u305b\u3066\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3084cd\u306e\u5c65\u6b74\u3092\u9078\u629e\u53ef\u80fd\u306b\u3059\u308c\u3070\u4fbf\u5229\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u304a\u6c17\u306b\u5165\u308a\u306e\u30c4\u30fc\u30eb\u306a\u306e\u3067\u7d39\u4ecb\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<!--more--><\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>peco\u306fgo\u3067\u4f5c\u3089\u308c\u305f\u30c4\u30fc\u30eb\u306a\u306e\u3067<a href=\"https:\/\/github.com\/peco\/peco\/releases\">Releases<\/a>\u304b\u3089Mac\/Windows\/Linux\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4f7f\u3046\u306e\u304c\u4e00\u756a\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>Mac\u306e\u5834\u5408peco_darwin_amd64.zip\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001peco\u3092\u300c\/usr\/local\/bin\u300d\u306a\u3069\u30d1\u30b9\u304c\u901a\u3063\u305f\u30d5\u30a9\u30eb\u30c0\u306b(Homebrew\u30e6\u30fc\u30b6\u30fc\u306f\u5225\u306e\u5834\u6240\u304c\u826f\u3044\u3067\u3057\u3087\u3046)\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u300c<span class=\"mybold\">ls -l | peco<\/span>\u300d\u3092\u5b9f\u884c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/11\/I1.-peco.jpg\" alt=\"1 peco\" title=\"1. peco.jpg\" border=\"0\" width=\"546\" height=\"366\" \/><\/p>\n<p>\u77e2\u5370\u30ad\u30fc\u306a\u3069\u3067\u30ab\u30fc\u30bd\u30eb\u3092\u52d5\u304b\u3057\u3001\u30ea\u30bf\u30fc\u30f3\u30ad\u30fc\u3067\u9078\u629e\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u8a2d\u5b9a<\/h3>\n<p>zsh\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u5834\u5408\u3001\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3068cd\u5c65\u6b74\u3092peco\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u306e\u304c\u30e1\u30b8\u30e3\u30fc\u306a\u3088\u3046\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u306f<a href=\"http:\/\/blog.shibayu36.org\/entry\/2014\/06\/27\/223538\">peco\u3092\u4f7f\u3044\u59cb\u3081\u305f<\/a>\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u3002<\/p>\n<h4>\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3092\u9078\u629e\u5f0f\u306b<\/h4>\n<p>\u300c.zshrc\u300d\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>\nfunction peco-select-history() {\n    local tac\n    if which tac > \/dev\/null; then\n        tac=\"tac\"\n    else\n        tac=\"tail -r\"\n    fi\n    BUFFER=$(history -n 1 | \\\n        eval $tac | \\\n        peco --query \"$LBUFFER\")\n    CURSOR=$#BUFFER\n    zle clear-screen\n}\nzle -N peco-select-history\nbindkey '^^' peco-select-history\n<\/pre>\n<p>\u300csource .zshrc\u300d\u3059\u308b\u3068\u300cCtrl-^\u300d\u3067\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u304c\u9078\u629e\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/11\/I1.-zsh.jpg\" alt=\"1 zsh\" title=\"1. zsh.jpg\" border=\"0\" width=\"546\" height=\"310\" \/><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u304c\u4e00\u89a7\u8868\u793a\u3055\u308c\u518d\u5229\u7528\u53ef\u80fd\u306a\u308a\u307e\u3057\u305f\uff01\uff01\u6587\u5b57\u3092\u6253\u3061\u8fbc\u3093\u3067\u3044\u304f\u3068\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30bf\u30eb\u306b\u7d50\u679c\u304c\u7d5e\u308a\u8fbc\u307e\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h4>cd\u5c65\u6b74\u3092\u9078\u629e\u5f0f\u306b<\/h4>\n<p>\u300c.zshrc\u300d\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>\nfunction peco-cdr () {\n    local selected_dir=$(cdr -l | awk '{ print $2 }' | peco)\n    if [ -n \"$selected_dir\" ]; then\n        BUFFER=\"cd ${selected_dir}\"\n        zle accept-line\n    fi\n    zle clear-screen\n}\nzle -N peco-cdr\nbindkey '^@' peco-cdr\n<\/pre>\n<p>\u300csource .zshrc\u300d\u3059\u308b\u3068\u300cCtrl-@\u300d\u3067\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u304c\u9078\u629e\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/11\/I1.-zsh-1.jpg\" alt=\"1 zsh 1\" title=\"1. zsh-1.jpg\" border=\"0\" width=\"546\" height=\"310\" \/><\/p>\n<p>cd\u3057\u305f\u5c65\u6b74\u304c\u4e00\u89a7\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01\uff01\u3044\u304f\u3064\u3082\u306e\u4f5c\u696d\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u884c\u3063\u305f\u308a\u6765\u305f\u308a\u3057\u3066\u4f5c\u696d\u3057\u3066\u3044\u308b\u3068\u304d\u304b\u306a\u308a\u4fbf\u5229\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>peco\u306e\u57fa\u672c\u7684\u306a\u5229\u7528\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u6a19\u6e96\u5165\u51fa\u529b\u3092\u4ecb\u3057\u3066\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u3068\u9023\u643a\u3059\u308bUNIX\u7cbe\u795e\u6ea2\u308c\u308b\u30c4\u30fc\u30eb\u306a\u306e\u3067\u30a2\u30a4\u30c7\u30a2\u6b21\u7b2c\u3067\u4ed6\u306b\u3082\u3044\u308d\u3044\u308d\u306a\u5229\u7528\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u305d\u3046\u3067\u3059\u3002\u300cpeco \u8a2d\u5b9a\u300d\u306a\u3069\u3067\u691c\u7d22\u3059\u308b\u3068\u3088\u308a\u30c7\u30a3\u30fc\u30d7\u306a\u6d3b\u7528\u65b9\u6cd5\u304c\u305f\u304f\u3055\u3093\u898b\u3064\u304b\u308b\u306e\u3067\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u63a2\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cpeco\u300d\u306f\u3042\u3089\u3086\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u51fa\u529b\u3092\u9078\u629e\u53ef\u80fd\u306b\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u9769\u547d\u5150\u3068\u3057\u3066\u4eca\u9759\u304b\u306a\u30d6\u30fc\u30e0\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 peco\u3092\u4f7f\u3048\u3070\u3001\u4f8b\u3048\u3070\u300cps aucx | peco\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6a19\u6e96\u51fa\u529b\u3055\u308c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":25260,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[4,75],"tags":[711,2814],"class_list":["post-25264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac","category-software","tag-go","tag-peco"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/25264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=25264"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/25264\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/25260"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=25264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=25264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=25264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}