{"id":728,"date":"2025-01-10T14:32:41","date_gmt":"2025-01-10T06:32:41","guid":{"rendered":"http:\/\/www.o6s.net\/?p=728"},"modified":"2025-10-25T22:45:38","modified_gmt":"2025-10-25T14:45:38","slug":"%e5%9c%a8%e9%be%99%e8%8a%af3a6000-loongnix%e4%b8%8b%e5%ae%89%e8%a3%85fzf","status":"publish","type":"post","link":"https:\/\/www.o6s.net\/index.php\/2025\/01\/10\/%e5%9c%a8%e9%be%99%e8%8a%af3a6000-loongnix%e4%b8%8b%e5%ae%89%e8%a3%85fzf\/","title":{"rendered":"\u5728\u9f99\u82af3a6000 loongnix\u4e0b\u5b89\u88c5fzf"},"content":{"rendered":"<section><span data-pm-slice=\"0 0 []\">Fuzzy finder \u662f\u4e00\u6b3e\u4f7f\u7528 GO \u8bed\u8a00\u7f16\u5199\u7684\u4ea4\u4e92\u5f0f\u7684Linux\u7ec8\u7aef\u4e0b\u7684\u4e00\u6b3e\u6a21\u7cca\u641c\u7d22\u795e\u3002\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u4efb\u4f55\u5217\u8868\u5185\u5bb9\uff0c\u6587\u4ef6\u3001Git \u5206\u652f\u3001\u8fdb\u7a0b\u7b49\u3002\u6240\u6709\u7684\u547d\u4ee4\u884c\u5de5\u5177\u53ef\u4ee5\u751f\u6210\u5217\u8868\u8f93\u51fa\u7684\u90fd\u53ef\u4ee5\u518d\u901a\u8fc7\u7ba1\u9053 pipe \u5230 fzf \u4e0a\u8fdb\u884c\u641c\u7d22\u548c\u67e5\u627e\u3002<\/span><br \/>\n\u8fd8\u53ef\u4ee5\u914d\u5408vim\u4ee5\u53ca\u5176\u4ed6\u8f6f\u4ef6\u4f7f\u7528\uff0c\u53ef\u4ee5\u8bf4\u662f\u7ec8\u7aef\u515a\u7684\u5fc5\u5907\u795e\u5668\u3002<br \/>\n### \u5b89\u88c5go<br \/>\n`sudo rm -rf \/usr\/local\/go<br \/>\nsudo tar xf\u00a0go&#8230;linux-loong.tar.gz -C \/usr\/local\/<br \/>\nexport PATH=$PATH:\/usr\/local\/go\/bin<br \/>\ngo version`<br \/>\n`<br \/>\n### \u8bbe\u7f6e go \u4ee3\u7406\uff08\u4fbf\u4e8e\u4e0b\u8f7d\u7f16\u8bd1\u7ec4\u4ef6\uff09<br \/>\ngo env -w GOPROXY=https:\/\/goproxy.io,direct<br \/>\ngo env -w GO111MODULE=on<br \/>\n### \u7f16\u8bd1 fzf<br \/>\ngit clone\u00a0https:\/\/github.com\/junegunn\/fzf.git<br \/>\ncd fzf-..<br \/>\nmake<\/section>\n<section>make install<\/section>\n<section>\n<section>### \u624b\u5de5\u5b89\u88c5<\/section>\n<section>sudo rm -f \u00a0\/usr\/bin\/fzf<\/section>\n<section><span data-pm-slice=\"1 1 [&quot;para&quot;,{&quot;tagName&quot;:&quot;section&quot;,&quot;attributes&quot;:{},&quot;namespaceURI&quot;:&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;},&quot;para&quot;,{&quot;tagName&quot;:&quot;section&quot;,&quot;attributes&quot;:{},&quot;namespaceURI&quot;:&quot;&quot;}]\">sudo \u00a0<\/span>cp -f target\/fzf-linux_loong64 \/usr\/bin\/fzf<\/section>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Fuzzy finder \u662f\u4e00\u6b3e\u4f7f\u7528 GO \u8bed\u8a00\u7f16\u5199\u7684\u4ea4\u4e92\u5f0f\u7684Linux\u7ec8\u7aef\u4e0b\u7684\u4e00\u6b3e\u6a21\u7cca\u641c\u7d22\u795e\u3002\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u4efb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-728","post","type-post","status-publish","format-standard","hentry","category-misc"],"_links":{"self":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts\/728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/comments?post=728"}],"version-history":[{"count":1,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts\/728\/revisions"}],"predecessor-version":[{"id":734,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/posts\/728\/revisions\/734"}],"wp:attachment":[{"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/media?parent=728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/categories?post=728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.o6s.net\/index.php\/wp-json\/wp\/v2\/tags?post=728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}