[{"data":1,"prerenderedAt":873},["Reactive",2],{"article-20211218":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"published":9,"categories":10,"tags":12,"slug":14,"body":15,"_type":868,"_id":869,"_source":870,"_file":871,"_extension":872},"/articles/20211218","articles",false,"","macOS下terminal的配置","2021/12/18",[11],"系统",[13],"shell","terminal相关设置",{"type":16,"children":17,"toc":855},"root",[18,27,41,47,52,64,71,76,85,90,98,104,109,117,123,128,133,138,143,153,158,178,190,195,203,239,244,249,254,259,280,521,541,734,739,774,779,787,798,806,811,816,849],{"type":19,"tag":20,"props":21,"children":23},"element","h2",{"id":22},"oh-my-zsh",[24],{"type":25,"value":26},"text","Oh My Zsh",{"type":19,"tag":28,"props":29,"children":30},"p",{},[31,33],{"type":25,"value":32},"官网网址：",{"type":19,"tag":34,"props":35,"children":39},"a",{"href":36,"rel":37},"https://ohmyz.sh/",[38],"nofollow",[40],{"type":25,"value":36},{"type":19,"tag":20,"props":42,"children":44},{"id":43},"iterm2的配置使用",[45],{"type":25,"value":46},"iTerm2的配置使用",{"type":19,"tag":28,"props":48,"children":49},{},[50],{"type":25,"value":51},"用于代替macOS的终端软件",{"type":19,"tag":28,"props":53,"children":54},{},[55,57],{"type":25,"value":56},"安装网址：",{"type":19,"tag":34,"props":58,"children":61},{"href":59,"rel":60},"https://iterm2.com/",[38],[62],{"type":25,"value":63},"iTerm2",{"type":19,"tag":65,"props":66,"children":68},"h3",{"id":67},"status-bar",[69],{"type":25,"value":70},"status bar",{"type":19,"tag":28,"props":72,"children":73},{},[74],{"type":25,"value":75},"status bar就是一下图示的红色区域：",{"type":19,"tag":28,"props":77,"children":78},{},[79],{"type":19,"tag":80,"props":81,"children":84},"img",{"alt":82,"src":83},"Pasted image 20260303203031","https://johnhom-img.oss-cn-guangzhou.aliyuncs.com/obsidian/Pasted%20image%2020260303203031.png",[],{"type":19,"tag":28,"props":86,"children":87},{},[88],{"type":25,"value":89},"如果需要使用呢，请按照以下的图示开启status bar：",{"type":19,"tag":28,"props":91,"children":92},{},[93],{"type":19,"tag":80,"props":94,"children":97},{"alt":95,"src":96},"Pasted image 20260303203043","https://johnhom-img.oss-cn-guangzhou.aliyuncs.com/obsidian/Pasted%20image%2020260303203043.png",[],{"type":19,"tag":20,"props":99,"children":101},{"id":100},"使用命令打开vscode",[102],{"type":25,"value":103},"使用命令打开VSCode",{"type":19,"tag":28,"props":105,"children":106},{},[107],{"type":25,"value":108},"首先打开VSCode，然后使用快捷键Shift+Command+P，调起命令窗口，输入shell Command，下方出现Install 'code' command in PATH选项，点击以安装。",{"type":19,"tag":28,"props":110,"children":111},{},[112],{"type":19,"tag":80,"props":113,"children":116},{"alt":114,"src":115},"Pasted image 20260303203100","https://johnhom-img.oss-cn-guangzhou.aliyuncs.com/obsidian/Pasted%20image%2020260303203100.png",[],{"type":19,"tag":65,"props":118,"children":120},{"id":119},"使用步骤",[121],{"type":25,"value":122},"使用步骤：",{"type":19,"tag":28,"props":124,"children":125},{},[126],{"type":25,"value":127},"打开命令行，进入工作目录，然后如果要用vscode打开某个文件夹，直接输入vscode + . 即可。",{"type":19,"tag":20,"props":129,"children":131},{"id":130},"link",[132],{"type":25,"value":130},{"type":19,"tag":28,"props":134,"children":135},{},[136],{"type":25,"value":137},"软链接的作用就是生成一个目标文件或者目录，这个文件或者目录指向源文件或者目录。",{"type":19,"tag":28,"props":139,"children":140},{},[141],{"type":25,"value":142},"语法",{"type":19,"tag":144,"props":145,"children":147},"pre",{"code":146},"ln -s [源文件或目录] [目标文件或目录]\n",[148],{"type":19,"tag":149,"props":150,"children":151},"code",{"__ignoreMap":7},[152],{"type":25,"value":146},{"type":19,"tag":28,"props":154,"children":155},{},[156],{"type":25,"value":157},"在某个场景下，我想通过终端，用VSCode打开某个文件夹，步骤是如下：",{"type":19,"tag":159,"props":160,"children":161},"ol",{},[162,168,173],{"type":19,"tag":163,"props":164,"children":165},"li",{},[166],{"type":25,"value":167},"打开终端",{"type":19,"tag":163,"props":169,"children":170},{},[171],{"type":25,"value":172},"一层一层进入到对应的文件夹内。",{"type":19,"tag":163,"props":174,"children":175},{},[176],{"type":25,"value":177},"输入code + .命令，之后就会启动VSCode打开文件夹。",{"type":19,"tag":28,"props":179,"children":180},{},[181,183,188],{"type":25,"value":182},"如果文件夹所在的层次较多，又无法移动，我们可以使用",{"type":19,"tag":149,"props":184,"children":186},{"className":185},[],[187],{"type":25,"value":130},{"type":25,"value":189},"命令，通过软链接的方式，将该文件夹软链接到用户的根目录下。",{"type":19,"tag":28,"props":191,"children":192},{},[193],{"type":25,"value":194},"执行的软连接的命令如下：",{"type":19,"tag":144,"props":196,"children":198},{"code":197},"ln -s /Volumes/Backup/fk ~/\n",[199],{"type":19,"tag":149,"props":200,"children":201},{"__ignoreMap":7},[202],{"type":25,"value":197},{"type":19,"tag":28,"props":204,"children":205},{},[206,208,214,216,222,224,230,232,237],{"type":25,"value":207},"这样就会在当前的用户目录下创建一个",{"type":19,"tag":149,"props":209,"children":211},{"className":210},[],[212],{"type":25,"value":213},"fk",{"type":25,"value":215},"的文件夹，这个文件夹会指向",{"type":19,"tag":149,"props":217,"children":219},{"className":218},[],[220],{"type":25,"value":221},"/Volumes/Backup/fk",{"type":25,"value":223},"，之后我只需要在终端直接",{"type":19,"tag":149,"props":225,"children":227},{"className":226},[],[228],{"type":25,"value":229},"cd ~/fk",{"type":25,"value":231},"，即可执行",{"type":19,"tag":149,"props":233,"children":235},{"className":234},[],[236],{"type":25,"value":149},{"type":25,"value":238},"命令打开文件夹。",{"type":19,"tag":20,"props":240,"children":242},{"id":241},"终端设置代理翻墙",[243],{"type":25,"value":241},{"type":19,"tag":28,"props":245,"children":246},{},[247],{"type":25,"value":248},"想要在命令行安装oh-my-zsh，最后发现终端访问github失败，但是浏览器缺可以访问，这可能是因为终端并没有走代理。",{"type":19,"tag":28,"props":250,"children":251},{},[252],{"type":25,"value":253},"下面我们来配置终端走代理。",{"type":19,"tag":65,"props":255,"children":257},{"id":256},"改写shell配置文件",[258],{"type":25,"value":256},{"type":19,"tag":28,"props":260,"children":261},{},[262,264,270,272,278],{"type":25,"value":263},"把代理服务器地址写入 shell 配置文件",{"type":19,"tag":149,"props":265,"children":267},{"className":266},[],[268],{"type":25,"value":269},".bashrc",{"type":25,"value":271},"或者",{"type":19,"tag":149,"props":273,"children":275},{"className":274},[],[276],{"type":25,"value":277},".zshrc",{"type":25,"value":279},"，在shell配置文件添加下面内容：",{"type":19,"tag":144,"props":281,"children":284},{"code":282,"language":13,"meta":7,"className":283,"style":7},"# 配置终端走代理模式\nfunction proxy_on() {\n  export https_proxy=http://127.0.0.1:port\n  export http_proxy=http://127.0.0.1:port\n  export all_proxy=socks5://127.0.0.1:port\n}\n# 关闭代理\nfunction proxy_off() {\n  unset https_proxy\n  unset http_proxy\n  unset all_proxy\n  echo -e \"已关闭代理\"\n}\n\n# 执行proxy_on\nproxy_on\n","language-shell shiki shiki-themes github-dark",[285],{"type":19,"tag":149,"props":286,"children":287},{"__ignoreMap":7},[288,300,322,346,367,389,398,407,424,440,453,466,485,493,503,512],{"type":19,"tag":289,"props":290,"children":293},"span",{"class":291,"line":292},"line",1,[294],{"type":19,"tag":289,"props":295,"children":297},{"style":296},"--shiki-default:#6A737D",[298],{"type":25,"value":299},"# 配置终端走代理模式\n",{"type":19,"tag":289,"props":301,"children":303},{"class":291,"line":302},2,[304,310,316],{"type":19,"tag":289,"props":305,"children":307},{"style":306},"--shiki-default:#F97583",[308],{"type":25,"value":309},"function",{"type":19,"tag":289,"props":311,"children":313},{"style":312},"--shiki-default:#B392F0",[314],{"type":25,"value":315}," proxy_on",{"type":19,"tag":289,"props":317,"children":319},{"style":318},"--shiki-default:#E1E4E8",[320],{"type":25,"value":321},"() {\n",{"type":19,"tag":289,"props":323,"children":325},{"class":291,"line":324},3,[326,331,336,341],{"type":19,"tag":289,"props":327,"children":328},{"style":306},[329],{"type":25,"value":330},"  export",{"type":19,"tag":289,"props":332,"children":333},{"style":318},[334],{"type":25,"value":335}," https_proxy",{"type":19,"tag":289,"props":337,"children":338},{"style":306},[339],{"type":25,"value":340},"=",{"type":19,"tag":289,"props":342,"children":343},{"style":318},[344],{"type":25,"value":345},"http://127.0.0.1:port\n",{"type":19,"tag":289,"props":347,"children":349},{"class":291,"line":348},4,[350,354,359,363],{"type":19,"tag":289,"props":351,"children":352},{"style":306},[353],{"type":25,"value":330},{"type":19,"tag":289,"props":355,"children":356},{"style":318},[357],{"type":25,"value":358}," http_proxy",{"type":19,"tag":289,"props":360,"children":361},{"style":306},[362],{"type":25,"value":340},{"type":19,"tag":289,"props":364,"children":365},{"style":318},[366],{"type":25,"value":345},{"type":19,"tag":289,"props":368,"children":370},{"class":291,"line":369},5,[371,375,380,384],{"type":19,"tag":289,"props":372,"children":373},{"style":306},[374],{"type":25,"value":330},{"type":19,"tag":289,"props":376,"children":377},{"style":318},[378],{"type":25,"value":379}," all_proxy",{"type":19,"tag":289,"props":381,"children":382},{"style":306},[383],{"type":25,"value":340},{"type":19,"tag":289,"props":385,"children":386},{"style":318},[387],{"type":25,"value":388},"socks5://127.0.0.1:port\n",{"type":19,"tag":289,"props":390,"children":392},{"class":291,"line":391},6,[393],{"type":19,"tag":289,"props":394,"children":395},{"style":318},[396],{"type":25,"value":397},"}\n",{"type":19,"tag":289,"props":399,"children":401},{"class":291,"line":400},7,[402],{"type":19,"tag":289,"props":403,"children":404},{"style":296},[405],{"type":25,"value":406},"# 关闭代理\n",{"type":19,"tag":289,"props":408,"children":410},{"class":291,"line":409},8,[411,415,420],{"type":19,"tag":289,"props":412,"children":413},{"style":306},[414],{"type":25,"value":309},{"type":19,"tag":289,"props":416,"children":417},{"style":312},[418],{"type":25,"value":419}," proxy_off",{"type":19,"tag":289,"props":421,"children":422},{"style":318},[423],{"type":25,"value":321},{"type":19,"tag":289,"props":425,"children":427},{"class":291,"line":426},9,[428,434],{"type":19,"tag":289,"props":429,"children":431},{"style":430},"--shiki-default:#79B8FF",[432],{"type":25,"value":433},"  unset",{"type":19,"tag":289,"props":435,"children":437},{"style":436},"--shiki-default:#9ECBFF",[438],{"type":25,"value":439}," https_proxy\n",{"type":19,"tag":289,"props":441,"children":443},{"class":291,"line":442},10,[444,448],{"type":19,"tag":289,"props":445,"children":446},{"style":430},[447],{"type":25,"value":433},{"type":19,"tag":289,"props":449,"children":450},{"style":436},[451],{"type":25,"value":452}," http_proxy\n",{"type":19,"tag":289,"props":454,"children":456},{"class":291,"line":455},11,[457,461],{"type":19,"tag":289,"props":458,"children":459},{"style":430},[460],{"type":25,"value":433},{"type":19,"tag":289,"props":462,"children":463},{"style":436},[464],{"type":25,"value":465}," all_proxy\n",{"type":19,"tag":289,"props":467,"children":469},{"class":291,"line":468},12,[470,475,480],{"type":19,"tag":289,"props":471,"children":472},{"style":430},[473],{"type":25,"value":474},"  echo",{"type":19,"tag":289,"props":476,"children":477},{"style":430},[478],{"type":25,"value":479}," -e",{"type":19,"tag":289,"props":481,"children":482},{"style":436},[483],{"type":25,"value":484}," \"已关闭代理\"\n",{"type":19,"tag":289,"props":486,"children":488},{"class":291,"line":487},13,[489],{"type":19,"tag":289,"props":490,"children":491},{"style":318},[492],{"type":25,"value":397},{"type":19,"tag":289,"props":494,"children":496},{"class":291,"line":495},14,[497],{"type":19,"tag":289,"props":498,"children":500},{"emptyLinePlaceholder":499},true,[501],{"type":25,"value":502},"\n",{"type":19,"tag":289,"props":504,"children":506},{"class":291,"line":505},15,[507],{"type":19,"tag":289,"props":508,"children":509},{"style":296},[510],{"type":25,"value":511},"# 执行proxy_on\n",{"type":19,"tag":289,"props":513,"children":515},{"class":291,"line":514},16,[516],{"type":19,"tag":289,"props":517,"children":518},{"style":312},[519],{"type":25,"value":520},"proxy_on\n",{"type":19,"tag":28,"props":522,"children":523},{},[524,526,532,534,539],{"type":25,"value":525},"首先我们要知道代理本地端口号，以ClashX为例，http和https的代理端口为",{"type":19,"tag":527,"props":528,"children":529},"strong",{},[530],{"type":25,"value":531},"7890",{"type":25,"value":533},"，socks的代理端口为",{"type":19,"tag":527,"props":535,"children":536},{},[537],{"type":25,"value":538},"7891",{"type":25,"value":540},"，那么我们应该对shell的配置文件（.bashrc或者.zshrc）的末尾行添加以下内容：",{"type":19,"tag":144,"props":542,"children":544},{"code":543,"language":13,"meta":7,"className":283,"style":7},"# 配置终端走代理模式\nfunction proxy_on() {\n  export https_proxy=http://127.0.0.1:7890\n  export http_proxy=http://127.0.0.1:7890\n  export all_proxy=socks5://127.0.0.1:7891\n}\n# 关闭代理\nfunction proxy_off() {\n  unset https_proxy\n  unset http_proxy\n  unset all_proxy\n  echo -e \"已关闭代理\"\n}\n\n# 执行proxy_on\nproxy_on\n",[545],{"type":19,"tag":149,"props":546,"children":547},{"__ignoreMap":7},[548,555,570,590,609,629,636,643,658,669,680,691,706,713,720,727],{"type":19,"tag":289,"props":549,"children":550},{"class":291,"line":292},[551],{"type":19,"tag":289,"props":552,"children":553},{"style":296},[554],{"type":25,"value":299},{"type":19,"tag":289,"props":556,"children":557},{"class":291,"line":302},[558,562,566],{"type":19,"tag":289,"props":559,"children":560},{"style":306},[561],{"type":25,"value":309},{"type":19,"tag":289,"props":563,"children":564},{"style":312},[565],{"type":25,"value":315},{"type":19,"tag":289,"props":567,"children":568},{"style":318},[569],{"type":25,"value":321},{"type":19,"tag":289,"props":571,"children":572},{"class":291,"line":324},[573,577,581,585],{"type":19,"tag":289,"props":574,"children":575},{"style":306},[576],{"type":25,"value":330},{"type":19,"tag":289,"props":578,"children":579},{"style":318},[580],{"type":25,"value":335},{"type":19,"tag":289,"props":582,"children":583},{"style":306},[584],{"type":25,"value":340},{"type":19,"tag":289,"props":586,"children":587},{"style":318},[588],{"type":25,"value":589},"http://127.0.0.1:7890\n",{"type":19,"tag":289,"props":591,"children":592},{"class":291,"line":348},[593,597,601,605],{"type":19,"tag":289,"props":594,"children":595},{"style":306},[596],{"type":25,"value":330},{"type":19,"tag":289,"props":598,"children":599},{"style":318},[600],{"type":25,"value":358},{"type":19,"tag":289,"props":602,"children":603},{"style":306},[604],{"type":25,"value":340},{"type":19,"tag":289,"props":606,"children":607},{"style":318},[608],{"type":25,"value":589},{"type":19,"tag":289,"props":610,"children":611},{"class":291,"line":369},[612,616,620,624],{"type":19,"tag":289,"props":613,"children":614},{"style":306},[615],{"type":25,"value":330},{"type":19,"tag":289,"props":617,"children":618},{"style":318},[619],{"type":25,"value":379},{"type":19,"tag":289,"props":621,"children":622},{"style":306},[623],{"type":25,"value":340},{"type":19,"tag":289,"props":625,"children":626},{"style":318},[627],{"type":25,"value":628},"socks5://127.0.0.1:7891\n",{"type":19,"tag":289,"props":630,"children":631},{"class":291,"line":391},[632],{"type":19,"tag":289,"props":633,"children":634},{"style":318},[635],{"type":25,"value":397},{"type":19,"tag":289,"props":637,"children":638},{"class":291,"line":400},[639],{"type":19,"tag":289,"props":640,"children":641},{"style":296},[642],{"type":25,"value":406},{"type":19,"tag":289,"props":644,"children":645},{"class":291,"line":409},[646,650,654],{"type":19,"tag":289,"props":647,"children":648},{"style":306},[649],{"type":25,"value":309},{"type":19,"tag":289,"props":651,"children":652},{"style":312},[653],{"type":25,"value":419},{"type":19,"tag":289,"props":655,"children":656},{"style":318},[657],{"type":25,"value":321},{"type":19,"tag":289,"props":659,"children":660},{"class":291,"line":426},[661,665],{"type":19,"tag":289,"props":662,"children":663},{"style":430},[664],{"type":25,"value":433},{"type":19,"tag":289,"props":666,"children":667},{"style":436},[668],{"type":25,"value":439},{"type":19,"tag":289,"props":670,"children":671},{"class":291,"line":442},[672,676],{"type":19,"tag":289,"props":673,"children":674},{"style":430},[675],{"type":25,"value":433},{"type":19,"tag":289,"props":677,"children":678},{"style":436},[679],{"type":25,"value":452},{"type":19,"tag":289,"props":681,"children":682},{"class":291,"line":455},[683,687],{"type":19,"tag":289,"props":684,"children":685},{"style":430},[686],{"type":25,"value":433},{"type":19,"tag":289,"props":688,"children":689},{"style":436},[690],{"type":25,"value":465},{"type":19,"tag":289,"props":692,"children":693},{"class":291,"line":468},[694,698,702],{"type":19,"tag":289,"props":695,"children":696},{"style":430},[697],{"type":25,"value":474},{"type":19,"tag":289,"props":699,"children":700},{"style":430},[701],{"type":25,"value":479},{"type":19,"tag":289,"props":703,"children":704},{"style":436},[705],{"type":25,"value":484},{"type":19,"tag":289,"props":707,"children":708},{"class":291,"line":487},[709],{"type":19,"tag":289,"props":710,"children":711},{"style":318},[712],{"type":25,"value":397},{"type":19,"tag":289,"props":714,"children":715},{"class":291,"line":495},[716],{"type":19,"tag":289,"props":717,"children":718},{"emptyLinePlaceholder":499},[719],{"type":25,"value":502},{"type":19,"tag":289,"props":721,"children":722},{"class":291,"line":505},[723],{"type":19,"tag":289,"props":724,"children":725},{"style":296},[726],{"type":25,"value":511},{"type":19,"tag":289,"props":728,"children":729},{"class":291,"line":514},[730],{"type":19,"tag":289,"props":731,"children":732},{"style":312},[733],{"type":25,"value":520},{"type":19,"tag":28,"props":735,"children":736},{},[737],{"type":25,"value":738},"然后我们重启终端即可生效。如果不想重启终端，而是想在当前的终端生效，我们只需要执行命令：",{"type":19,"tag":144,"props":740,"children":742},{"code":741,"language":13,"meta":7,"className":283,"style":7},"source ~/.zshrc\n\n## .zshrc可以替换成上一步中修改的配置文件比如.bashrc\n",[743],{"type":19,"tag":149,"props":744,"children":745},{"__ignoreMap":7},[746,759,766],{"type":19,"tag":289,"props":747,"children":748},{"class":291,"line":292},[749,754],{"type":19,"tag":289,"props":750,"children":751},{"style":430},[752],{"type":25,"value":753},"source",{"type":19,"tag":289,"props":755,"children":756},{"style":436},[757],{"type":25,"value":758}," ~/.zshrc\n",{"type":19,"tag":289,"props":760,"children":761},{"class":291,"line":302},[762],{"type":19,"tag":289,"props":763,"children":764},{"emptyLinePlaceholder":499},[765],{"type":25,"value":502},{"type":19,"tag":289,"props":767,"children":768},{"class":291,"line":324},[769],{"type":19,"tag":289,"props":770,"children":771},{"style":296},[772],{"type":25,"value":773},"## .zshrc可以替换成上一步中修改的配置文件比如.bashrc\n",{"type":19,"tag":28,"props":775,"children":776},{},[777],{"type":25,"value":778},"最后测试是否翻墙成功，我们使用curl命令请求一下google网址：",{"type":19,"tag":144,"props":780,"children":782},{"code":781},"curl -I https://www.google.com\n",[783],{"type":19,"tag":149,"props":784,"children":785},{"__ignoreMap":7},[786],{"type":25,"value":781},{"type":19,"tag":28,"props":788,"children":789},{},[790,796],{"type":19,"tag":149,"props":791,"children":793},{"className":792},[],[794],{"type":25,"value":795},"-I",{"type":25,"value":797},"参数代表向服务器发出 HEAD 请求，然会将服务器返回的 HTTP 标头打印出来。",{"type":19,"tag":144,"props":799,"children":801},{"code":800},"➜  ~ curl -I https://www.google.com\n\nHTTP/1.1 200 Connection established\n\nHTTP/2 200 \ncontent-type: text/html; charset=ISO-8859-1\np3p: CP=\"This is not a P3P policy! See g.co/p3phelp for more info.\"\ndate: Sat, 18 Dec 2021 07:07:43 GMT\nserver: gws\nx-xss-protection: 0\nx-frame-options: SAMEORIGIN\nexpires: Sat, 18 Dec 2021 07:07:43 GMT\ncache-control: private\nset-cookie: 1P_JAR=2021-12-18-07; expires=Mon, 17-Jan-2022 07:07:43 GMT; path=/; domain=.google.com; Secure\nset-cookie: NID=511=ne5-MBMfwxq2a6ZyCdRAZ_zU-YjjksqtQ0OTNyRVPTWq1vnDpKTA0a2oDCeDLrbbDixP--aQ6H-ufrL-Zoj8HDkJpAOjkriQysg5OmPfViBCc7aknFCw_NBIlXffS8y0KwnAX3FBnqdUu1IiuQrT_t7gVOqOTqLmGKqxt6MZohU; expires=Sun, 19-Jun-2022 07:07:43 GMT; path=/; domain=.google.com; HttpOnly\nalt-svc: h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"\n",[802],{"type":19,"tag":149,"props":803,"children":804},{"__ignoreMap":7},[805],{"type":25,"value":800},{"type":19,"tag":28,"props":807,"children":808},{},[809],{"type":25,"value":810},"看到如下的输出，说明终端已经阔以访问外网啦。",{"type":19,"tag":28,"props":812,"children":813},{},[814],{"type":25,"value":815},"如果想要终端不使用代理，那么我们直接在终端输入以下命令即可：",{"type":19,"tag":144,"props":817,"children":819},{"code":818,"language":13,"meta":7,"className":283,"style":7},"➜  ~ proxy_off\n已关闭代理\n",[820],{"type":19,"tag":149,"props":821,"children":822},{"__ignoreMap":7},[823,841],{"type":19,"tag":289,"props":824,"children":825},{"class":291,"line":292},[826,831,836],{"type":19,"tag":289,"props":827,"children":828},{"style":312},[829],{"type":25,"value":830},"➜",{"type":19,"tag":289,"props":832,"children":833},{"style":436},[834],{"type":25,"value":835},"  ~",{"type":19,"tag":289,"props":837,"children":838},{"style":436},[839],{"type":25,"value":840}," proxy_off\n",{"type":19,"tag":289,"props":842,"children":843},{"class":291,"line":302},[844],{"type":19,"tag":289,"props":845,"children":846},{"style":312},[847],{"type":25,"value":848},"已关闭代理\n",{"type":19,"tag":850,"props":851,"children":852},"style",{},[853],{"type":25,"value":854},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":302,"depth":302,"links":856},[857,858,861,864,865],{"id":22,"depth":302,"text":26},{"id":43,"depth":302,"text":46,"children":859},[860],{"id":67,"depth":324,"text":70},{"id":100,"depth":302,"text":103,"children":862},[863],{"id":119,"depth":324,"text":122},{"id":130,"depth":302,"text":130},{"id":241,"depth":302,"text":241,"children":866},[867],{"id":256,"depth":324,"text":256},"markdown","content:articles:20211218.md","content","articles/20211218.md","md",1772793492656]