{"id":30,"date":"2025-05-20T23:59:32","date_gmt":"2025-05-20T15:59:32","guid":{"rendered":"https:\/\/itfinn.com\/?p=30"},"modified":"2025-05-20T23:59:32","modified_gmt":"2025-05-20T15:59:32","slug":"%e6%89%93%e9%80%a0%e4%b8%80%e4%b8%aa%e8%8a%b1%e9%87%8c%e8%83%a1%e5%93%a8%e5%8a%9f%e8%83%bd%e5%bc%ba%e5%a4%a7%e7%9a%84shell-oh-my-zsh","status":"publish","type":"post","link":"https:\/\/itfinn.com\/index.php\/2025\/05\/20\/%e6%89%93%e9%80%a0%e4%b8%80%e4%b8%aa%e8%8a%b1%e9%87%8c%e8%83%a1%e5%93%a8%e5%8a%9f%e8%83%bd%e5%bc%ba%e5%a4%a7%e7%9a%84shell-oh-my-zsh\/","title":{"rendered":"\u6253\u9020\u4e00\u4e2a\u82b1\u91cc\u80e1\u54e8(\u529f\u80fd\u5f3a\u5927)\u7684shell &#8211; Oh My Zsh"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">1 \u4ec0\u4e48\u662fShell<\/h3>\n\n\n\n<p>\u76f8\u5bf9\u4e8e\u5185\u6838\u6765\u8bf4\uff0cShell\u662fLinux\/Unix\u7684\u4e00\u4e2a\u5916\u58f3\uff0c\u5b83\u8d1f\u8d23\u5916\u754c\u4e0eLinux\u5185\u6838\u7684\u4ea4\u4e92\uff0c\u63a5\u6536\u7528\u6237\u6216\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u7684\u547d\u4ee4\uff0c\u7136\u540e\u628a\u8fd9\u4e9b\u547d\u4ee4\u8f6c\u5316\u6210\u5185\u6838\u80fd\u7406\u89e3\u7684\u8bed\u8a00\uff0c\u4f20\u7ed9\u5185\u6838\uff0c\u5185\u6838\u662f\u771f\u6b63\u5e72\u6d3b\u7684\uff0c\u5e72\u5b8c\u4e4b\u540e\u518d\u628a\u7ed3\u679c\u8fd4\u56de\u7528\u6237\u6216\u5e94\u7528\u7a0b\u5e8f\u3002<br>\u7b80\u5355\u7684\u8bf4\uff0cshell\u5c31\u662f\u90a3\u201c\u9ed1\u4e4e\u4e4e\u201d\u7684\u547d\u4ee4\u884c\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2 Shell\u7684\u5206\u7c7b<\/h3>\n\n\n\n<p>Linux\/Unix\u63d0\u4f9b\u4e86\u5f88\u591a\u79cdShell\uff0c\u4e0d\u540c\u7684shell\u5177\u5907\u4e0d\u540c\u7684\u529f\u80fd\uff0cshell\u8fd8\u51b3\u5b9a\u4e86\u811a\u672c\u4e2d\u51fd\u6570\u7684\u8bed\u6cd5\uff0cLinux\u4e2d\u9ed8\u8ba4\u7684shell\u662f\/bin\/bash\uff1b<\/p>\n\n\n\n<p>\u60f3\u77e5\u9053\u4f60\u7684\u7cfb\u7edf\u6709\u51e0\u79cdshell\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat \/etc\/shells<\/code><\/pre>\n\n\n\n<p>\u663e\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/bin\/sh\n\/bin\/bash\n\/usr\/bin\/sh\n\/usr\/bin\/bash\n\/bin\/zsh\n\/usr\/bin\/tmux<\/code><\/pre>\n\n\n\n<p><strong>bash<\/strong>\u8fd9\u4e2a\u662f\u76ee\u524d\u5927\u591a\u6570Linux\u7cfb\u7edf\u9ed8\u8ba4\u4f7f\u7528\u7684shell\uff0c\u5168\u540d\u662fBourneAgain Shell\uff0c\u4e00\u5171\u670940\u4e2a\u547d\u4ee4\u3002\u5305\u542b\u7684\u529f\u80fd\u51e0\u4e4e\u53ef\u4ee5\u6db5\u76d6shell\u6240\u5177\u6709\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u4e00\u822c\u7684shell\u811a\u672c\u90fd\u4f1a\u6307\u5b9a\u5b83\u4e3a\u6267\u884c\u8def\u5f84\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3 zsh\u4ecb\u7ecd<\/h3>\n\n\n\n<p>zsh \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 shell \u8f6f\u4ef6\uff0c\u5b83\u53ef\u4ee5\u517c\u5bb9 bash\uff0c\u5e76\u4e14\u63d0\u4f9b\u4e86\u5f88\u591a\u9ad8\u6548\u7684\u6539\u8fdb\u3002\u5b83\u662fLinux\u91cc\u6700\u5e9e\u5927\u7684\u4e00\u79cdshell\uff0c\u5b83\u670984\u4e2a\u5185\u90e8\u547d\u4ee4\uff0c\u4e5f\u63d0\u4f9b\u4e86\u66f4\u4e3a\u5f3a\u5927\u7684\u529f\u80fd:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u66f4\u597d\u7684\u81ea\u52a8\u8865\u5168<\/li>\n\n\n\n<li>\u66f4\u597d\u7684\u6587\u4ef6\u540d\u5c55\u5f00<\/li>\n\n\n\n<li>\u4e30\u5bcc\u7684\u63d2\u4ef6<\/li>\n\n\n\n<li>\u5f3a\u5927\u7684\u5b9a\u5236\u6027<br>\u4f46\u662f\u7531\u4e8e\u914d\u7f6e\u8fc7\u4e8e\u590d\u6742\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4e0d\u4f1a\u4f7f\u7528\u8be5shell\uff0c\u76f4\u5230<code>\u300coh my zsh\u300d<\/code>\u7684\u51fa\u73b0\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>Zsh\u7684\u4e00\u4e9b\u7279\u6027<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u517c\u5bb9bash\uff0c\u539f\u6765\u4f7f\u7528bash\u7684\u5144\u5f1f\u5207\u6362\u8fc7\u6765\u6beb\u65e0\u538b\u529b\u3002  \n\n\u5f3a\u5927\u7684\u5386\u53f2\u7eaa\u5f55\u529f\u80fd\uff0c\u5728\u7528\u6216\u8005\u65b9\u5411\u4e0a\u952e\u67e5\u627e\u5386\u53f2\u547d\u4ee4\u65f6\uff0czsh\u652f\u6301\u9650\u5236\u67e5\u627e\u3002\u6bd4\u5982\u8f93\u5165ls\u7136\u540e\u518d\u6309\u65b9\u5411\u4e0a\u952e,\u5219\u53ea\u4f1a\u67e5\u627e\u7528\u8fc7\u7684ls\u547d\u4ee4\u3002\u800c\u6b64\u65f6\u4f7f\u7528\u5219\u4f1a\u4ecd\u7136\u6309\u4e4b\u524d\u7684\u65b9\u5f0f\u67e5\u627e\uff0c\u5ffd\u7565ls\u3002  \n\n\u591a\u4e2a\u7ec8\u7aef\u4f1a\u8bdd\u5171\u4eab\u5386\u53f2\u8bb0\u5f55\u3002\u7ecf\u5e38\u6709\u591a\u4e2a\u7a97\u53e3\uff0ctab\uff0ctmux\u7684\u591a\u4e2asession\uff0cpanel\u3002\u8fd9\u4e9b\u547d\u4ee4\u5386\u53f2\u4e0d\u80fd\u5171\u4eab\u5b9e\u5728\u662f\u5f88\u7cdf\u7cd5\u7684\u56de\u5fc6\u3002\u4f46\u662f\u6709\u4e86zsh\u4e4b\u540e\uff0c\u8fd9\u4e9b\u786e\u5b9e\u6210\u4e86\u56de\u5fc6\u4e86,\u6240\u6709\u7684\u547d\u4ee4\u5386\u53f2\u90fd\u53ef\u4ee5\u5171\u4eab\u3002  \n\n\u667a\u80fd\u62fc\u5199\u7ea0\u6b63\uff0c\u8f93\u5165gtep mactalk * -R\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\uff1azsh: correct 'gtep' to 'grep' &#91;nyae]?\u6bd4\u59b9\u7eb8\u8d34\u5fc3\u5427\uff0c\u5979\u4eec\u5411\u6765\u90fd\u662f\u8ba9\u4f60\u731c\u7684\u2026\u2026  \n\n\u5404\u79cd\u8865\u5168\uff1a\u8def\u5f84\u8865\u5168\u3001\u547d\u4ee4\u8865\u5168\uff0c\u547d\u4ee4\u53c2\u6570\u8865\u5168\uff0c\u63d2\u4ef6\u5185\u5bb9\u8865\u5168\u7b49\u7b49\u3002\u89e6\u53d1\u8865\u5168\u53ea\u9700\u8981\u6309\u4e00\u4e0b\u6216\u4e24\u4e0btab\u952e\uff0c\u8865\u5168\u9879\u53ef\u4ee5\u4f7f\u7528ctrl+n\/p\/f\/b\u4e0a\u4e0b\u5de6\u53f3\u5207\u6362\u3002\u6bd4\u5982\u4f60\u60f3\u6740\u6389java\u7684\u8fdb\u7a0b\uff0c\u53ea\u9700\u8981\u8f93\u5165kill java + tab\u952e\uff0c\u5982\u679c\u53ea\u6709\u4e00\u4e2ajava\u8fdb\u7a0b\uff0czsh \u4f1a\u81ea\u52a8\u66ff\u6362\u4e3a\u8fdb\u7a0b\u7684 pid\uff0c\u5982\u679c\u6709\u591a\u4e2a\u5219\u4f1a\u51fa\u73b0\u9009\u62e9\u9879\u4f9b\u4f60\u9009\u62e9\u3002ssh+\u7a7a\u683c+\u4e24\u4e2atab\u952e\uff0czsh\u4f1a\u5217\u51fa\u6240\u6709\u8bbf\u95ee\u8fc7\u7684\u4e3b\u673a\u548c\u7528\u6237\u540d\u8fdb\u884c\u8865\u5168  \n\n\u667a\u80fd\u8df3\u8f6c\uff0c\u5b89\u88c5\u4e86autojump\u4e4b\u540e\uff0czsh \u4f1a\u81ea\u52a8\u8bb0\u5f55\u4f60\u8bbf\u95ee\u8fc7\u7684\u76ee\u5f55\uff0c\u901a\u8fc7 j + \u76ee\u5f55\u540d \u53ef\u4ee5\u76f4\u63a5\u8fdb\u884c\u76ee\u5f55\u8df3\u8f6c\uff0c\u800c\u4e14\u76ee\u5f55\u540d\u652f\u6301\u6a21\u7cca\u5339\u914d\u548c\u81ea\u52a8\u8865\u5168\uff0c\u4f8b\u5982\u4f60\u8bbf\u95ee\u8fc7hadoop-1.0.0\u76ee\u5f55\uff0c\u8f93\u5165j hado \u5373\u53ef\u6b63\u786e\u8df3\u8f6c\u3002j \u2013stat \u53ef\u4ee5\u770b\u4f60\u7684\u5386\u53f2\u8def\u5f84\u5e93\u3002  \n\n\u76ee\u5f55\u6d4f\u89c8\u548c\u8df3\u8f6c\uff1a\u8f93\u5165 d\uff0c\u5373\u53ef\u5217\u51fa\u4f60\u5728\u8fd9\u4e2a\u4f1a\u8bdd\u91cc\u8bbf\u95ee\u7684\u76ee\u5f55\u5217\u8868\uff0c\u8f93\u5165\u5217\u8868\u524d\u7684\u5e8f\u53f7\uff0c\u5373\u53ef\u76f4\u63a5\u8df3\u8f6c\u3002  \n\n\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u8f93\u5165 .. \u6216 \u2026 \uff0c\u6216\u76f4\u63a5\u8f93\u5165\u5f53\u524d\u76ee\u5f55\u540d\u90fd\u53ef\u4ee5\u8df3\u8f6c\uff0c\u4f60\u751a\u81f3\u4e0d\u518d\u9700\u8981\u8f93\u5165cd\u547d\u4ee4\u4e86\u3002  \n\u901a\u914d\u7b26\u641c\u7d22\uff1als -l **\/*.sh\uff0c\u53ef\u4ee5\u9012\u5f52\u663e\u793a\u5f53\u524d\u76ee\u5f55\u4e0b\u7684 shell \u6587\u4ef6\uff0c\u6587\u4ef6\u5c11\u65f6\u53ef\u4ee5\u4ee3\u66fffind\uff0c\u6587\u4ef6\u592a\u591a\u8fd8\u662f\u7528find\u3002<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4 zsh\u5b89\u88c5<\/h3>\n\n\n\n<p>\u5982\u679c\u4f60\u7528 Mac\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u770b\u4e0b\u4e00\u8282\uff0cMac\u9ed8\u8ba4\u5df2\u7ecf\u5b89\u88c5;<br>\u5982\u679c\u4f60\u7528 Redhat Linux\uff0c\u6267\u884c\uff1a<code>sudo yum install zsh<\/code>;<br>\u5982\u679c\u4f60\u7528 Ubuntu Linux\uff0c\u6267\u884c\uff1a<code>sudo apt-get install zsh<\/code>;<\/p>\n\n\n\n<p>\u73b0\u5728zsh\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\u4e86\uff0c\u9700\u8981\u628a\u7cfb\u7edf\u9ed8\u8ba4\u7684shell\u7531bash\u5207\u6362\u4e3azsh<br>\u5207\u6362shell\u81f3zsh\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ chsh -s \/bin\/zsh<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\uff0c\u6b64\u5904\u4e0d\u9700\u8981root\u6743\u9650\uff0c\u4e0d\u9700\u8981\u5728\u524d\u9762\u52a0sudo<br>\u8fd4\u56de\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Changing shell for root.\nShell changed.<\/code><\/pre>\n\n\n\n<p>\u6309\u63d0\u793a\u6240\u8ff0\uff0cshell\u5df2\u7ecf\u66f4\u6539\u4e3azsh\u4e86\uff0c\u73b0\u5728\u67e5\u770b\u4e00\u4e0b\u7cfb\u7edf\u5f53\u524d\u4f7f\u7528\u7684shell;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ echo $SHELL<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u8fd4\u56de\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/bin\/bash<\/code><\/pre>\n\n\n\n<p>\u5219\u8fd8\u6ca1\u5207\u6362\u8fc7\u6765\uff0c\u9700\u8981\u91cd\u542f\u4e00\u4e0b\u670d\u52a1\u5668\u540e\u518d\u767b\u9646<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo reboot<\/code><\/pre>\n\n\n\n<p>\u91cd\u542f\u8fc7\u540e\uff0c\u4f7f\u7528\u518d\u6b21\u67e5\u770b\u5f53\u524d\u4f7f\u7528\u7684shell, \u8fd4\u56de\u7ed3\u679c\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/bin\/zsh<\/code><\/pre>\n\n\n\n<p>\u5219\u8868\u793a, shell\u5df2\u7ecf\u5207\u6362\u6210\u529f\u4e86\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. Oh My Zsh<\/h3>\n\n\n\n<p><a href=\"https:\/\/ohmyz.sh\/\">Oh My Zsh<\/a>\u662f\u4e00\u6b3e\u793e\u533a\u9a71\u52a8\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u6b63\u5982\u5b83\u7684\u4e3b\u9875\u4e0a\u8bf4\u7684\uff0cOh My Zsh \u662f\u4e00\u79cd\u751f\u6d3b\u65b9\u5f0f\u3002\u5b83\u57fa\u4e8ezsh\u547d\u4ee4\u884c\uff0c\u63d0\u4f9b\u4e86\u4e3b\u9898\u914d\u7f6e\uff0c\u63d2\u4ef6\u673a\u5236\uff0c\u5df2\u7ecf\u5185\u7f6e\u7684\u4fbf\u6377\u64cd\u4f5c\u3002\u7ed9\u6211\u4eec\u4e00\u79cd\u5168\u65b0\u7684\u65b9\u5f0f\u4f7f\u7528\u547d\u4ee4\u884c\u3002<\/p>\n\n\n\n<p>Oh My Zsh\u53ea\u662f\u4e00\u4e2a\u5bf9zsh\u547d\u4ee4\u884c\u73af\u5883\u7684\u914d\u7f6e\u5305\u88c5\u6846\u67b6\uff0c\u4f46\u5b83\u4e0d\u63d0\u4f9b\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u66f4\u4e0d\u662f\u4e00\u4e2a\u72ec\u7acb\u7684APP\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5.1 \u5b89\u88c5<\/h4>\n\n\n\n<p>\u5b98\u7f51\u63a8\u8350\u5b89\u88c5\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<p>\u4f7f\u7528 curl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sh -c \"$(curl -fsSL https:\/\/raw.github.com\/robbyrussell\/oh-my-zsh\/master\/tools\/install.sh)\"<\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528 wget:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sh -c \"$(wget https:\/\/raw.github.com\/robbyrussell\/oh-my-zsh\/master\/tools\/install.sh -O -)\"<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u8f93\u51fa\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Cloning Oh My Zsh...\nCloning into '\/root\/.oh-my-zsh'...\nremote: Counting objects: 712, done.\nremote: Compressing objects: 100% (584\/584), done.\nremote: Total 712 (delta 15), reused 522 (delta 4), pack-reused 0\nReceiving objects: 100% (712\/712), 443.58 KiB | 27.00 KiB\/s, done.\nResolving deltas: 100% (15\/15), done.\nChecking connectivity... done.\nLooking for an existing zsh config...\nUsing the Oh My Zsh template file and adding it to ~\/.zshrc\nCopying your current PATH and adding it to the end of ~\/.zshrc for you.\nTime to change your default shell to zsh!\n\n                              ....is now installed!\n\nPlease look over the ~\/.zshrc file to select plugins, themes, and options.\np.s. Follow us at https:\/\/twitter.com\/ohmyzsh.\np.p.s. Get stickers and t-shirts at http:\/\/shop.planetargon.com.<\/code><\/pre>\n\n\n\n<p>\u5230\u8fd9\u91cc\uff0cOh My Zsh \u5c31\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n\n\n\n<p><strong>Oh My Zsh\u76ee\u5f55\u7ed3\u6784<\/strong><br>\u8fdb\u5165~\/.oh-my-zsh\u76ee\u5f55\u540e\uff0c\u770b\u770b\u8be5\u76ee\u5f55\u7684\u7ed3\u6784<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u26a1 root@finn # ~ $ ls ~\/.oh-my-zsh \ncache  CODE_OF_CONDUCT.md  CONTRIBUTING.md  custom  lib  LICENSE.txt  log  oh-my-zsh.sh  plugins  README.md  templates  themes  tools<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><code>lib<\/code> \u63d0\u4f9b\u4e86\u6838\u5fc3\u529f\u80fd\u7684\u811a\u672c\u5e93<br><code>tools<\/code> \u63d0\u4f9b\u5b89\u88c5\u3001\u5347\u7ea7\u7b49\u529f\u80fd\u7684\u5feb\u6377\u5de5\u5177<br><code>plugins<\/code> \u81ea\u5e26\u63d2\u4ef6\u7684\u5b58\u5728\u653e\u4f4d\u7f6e<br><code>templates<\/code> \u81ea\u5e26\u6a21\u677f\u7684\u5b58\u5728\u653e\u4f4d\u7f6e<br><code>themes<\/code> \u81ea\u5e26\u4e3b\u9898\u6587\u4ef6\u7684\u5b58\u5728\u653e\u4f4d\u7f6e<br><code>custom<\/code> \u4e2a\u6027\u5316\u914d\u7f6e\u76ee\u5f55\uff0c\u81ea\u5b89\u88c5\u7684\u63d2\u4ef6\u548c\u4e3b\u9898\u53ef\u653e\u8fd9\u91cc<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">5.2 \u914d\u7f6e<\/h4>\n\n\n\n<p>zsh\u7684\u914d\u7f6e\u6587\u4ef6\u5b58\u5728\u5f53\u524d\u7528\u6237\u76ee\u5f55\u4e2d\u7684.zshrc\u6587\u4ef6\uff0c\u5982\u679c\u4f60\u53d1\u73b0\u5207\u6362\u4e86shell\u4e4b\u540e\uff0c\u4ee5\u524d\u7684\u914d\u7f6e\u7684\u73af\u5883\u53d8\u91cf\u4e0d\u751f\u6548\u4e86\uff0c\u53ef\u4ee5\u6253\u5f00 .zshrc\u6587\u4ef6\uff0c\u627e\u5230\uff1a<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vim ~\/.zshrc \n\n# User configuration\n source ~\/.bash_profile<\/code><\/pre>\n\n\n\n<p>\u6307\u5b9a\u914d\u7f6e\u7684\u73af\u5883\u53d8\u91cf\u6587\u4ef6\uff0c\u4e4b\u540e\u8fd0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ source .zshrc<\/code><\/pre>\n\n\n\n<p><strong>\u66f4\u65b0oh-my-zsh<\/strong><br>\u8bbe\u7f6e\u81ea\u52a8\u66f4\u65b0oh-my-zsh<br>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5f53oh-my-zsh\u6709\u66f4\u65b0\u65f6\uff0c\u90fd\u4f1a\u7ed9\u4f60\u63d0\u793a\u3002\u5982\u679c\u5e0c\u671b\u8ba9oh-my-zsh\u81ea\u52a8\u66f4\u65b0\uff0c\u5728~\/.zshrc \u4e2d\u6dfb\u52a0\u4e0b\u9762\u8fd9\u53e5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DISABLE_UPDATE_PROMPT=true<\/code><\/pre>\n\n\n\n<p>\u8981\u624b\u52a8\u66f4\u65b0\uff0c\u53ef\u4ee5\u6267\u884c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ upgrade_oh_my_zsh<\/code><\/pre>\n\n\n\n<p><strong>\u5378\u8f7doh my zsh<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u76f4\u63a5\u5728\u7ec8\u7aef\u4e2d\uff0c\u8fd0\u884cuninstall_oh_my_zsh\u65e2\u53ef\u4ee5\u5378\u8f7d\u3002\n$ uninstall_oh_my_zsh<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">5.3 \u4e3b\u9898<\/h4>\n\n\n\n<p>\u5728.zshrc\u6587\u4ef6\u4e2d\u627e\u5230\u4e3b\u9898\u7684\u914d\u7f6e\u9879<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Set name of the theme to load --- if set to \"random\", it will\n# load a random theme each time oh-my-zsh is loaded, in which case,\n# to know which specific one was loaded, run: echo $RANDOM_THEME\n# See https:\/\/github.com\/robbyrussell\/oh-my-zsh\/wiki\/Themes\n# \u52a0\u8f7d\u8bbe\u7f6e\u540d\u79f0\u7684\u4e3b\u9898\n# \u5982\u679c\u8bbe\u7f6e\u7684\u540d\u79f0\u4e3a\"random\", \u5219\u4f1a\u968f\u673a\u52a0\u8f7d\u4e00\u4e2a\u4e3b\u9898\n# \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b, \u5982\u679c\u4f60\u60f3\u8981\u77e5\u9053\u662f\u54ea\u4e2a\u4e3b\u9898, \u53ef\u4ee5\u8f93\u5165\u547d\u4ee4\n# $ echo $RANDOM_THEME \u67e5\u770b\n\n# \u8fd9\u662f\u6211\u8bbe\u7f6e\u7684\u4e3b\u9898 agnoster\nZSH_THEME=\"agnoster\"<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u53ef\u4ee5\u8bbe\u7f6e\u4e3b\u9898\u7684\u540d\u5b57\uff0c\u90a3\u4e48\u8fd9\u4e9b\u4e3b\u9898\u7684\u540d\u5b57\u4ece\u54ea\u91cc\u627e\u5462\uff1f<br>\u8fdb\u5165Oh My Zsh\u7684\u914d\u7f6e\u76ee\u5f55\u4e2d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls ~\/.oh-my-zsh\/themes<\/code><\/pre>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u5185\u7f6e\u4e86\u8bb8\u591a\u4e3b\u9898\uff0c\u6839\u636e\u4e3b\u9898\u6587\u4ef6\u7684\u540d\u5b57\u66ff\u6362\u5c31\u53ef\u4ee5\u4e86\uff1b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>agnoster.zsh-theme       dieter.zsh-theme      fwalch.zsh-theme           \nalanpeabody.zsh-theme    dogenpunk.zsh-theme   gallifrey.zsh-theme        \namuse.zsh-theme          dpoggi.zsh-theme      gallois.zsh-theme          \napple.zsh-theme          dracula.zsh-theme     garyblessington.zsh-theme  \narrow.zsh-theme          dstufft.zsh-theme     gentoo.zsh-theme           \naussiegeek.zsh-theme     dst.zsh-theme         geoffgarside.zsh-theme     \navit.zsh-theme           duellj.zsh-theme      gianu.zsh-theme            \nawesomepanda.zsh-theme   eastwood.zsh-theme    gnzh.zsh-theme             \nbira.zsh-theme           edvardm.zsh-theme     gozilla.zsh-theme          \nblinks.zsh-theme         emotty.zsh-theme      half-life.zsh-theme        \nbureau.zsh-theme         essembeh.zsh-theme    humza.zsh-theme            \ncandy-kingdom.zsh-theme  evan.zsh-theme        imajes.zsh-theme           \ncandy.zsh-theme          fino-time.zsh-theme   intheloop.zsh-theme    \n...\n...<\/code><\/pre>\n\n\n\n<p>\u6216\u8005\u6211\u4eec\u5c06\u4e3b\u9898\u8bbe\u7f6e\u4e3a\u968f\u673a(<code>random<\/code>)\uff0c\u6bcf\u6b21\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u90fd\u4f1a\u968f\u673a\u5728\u9ed8\u8ba4\u4e3b\u9898\u4e2d\u9009\u62e9\u4e00\u4e2a\uff0c\u5982\u679c\u9047\u5230\u4f60\u559c\u6b22\u7684\u4e3b\u9898\uff0c\u53ef\u4ee5\u8f93\u5165\u547d\u4ee4\u67e5\u770b\u5176\u540d\u5b57\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ echo $ZSH_THEME<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u8fd9\u4e9b\u9ed8\u8ba4\u4e3b\u9898\u8fd8\u4e0d\u80fd\u6ee1\u8db3\u4f60\u7684\u9700\u8981\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5230\u8fd9\u91cc\u627e\u5230\u66f4\u591a\u7684\u4e3b\u9898<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/robbyrussell\/oh-my-zsh\/wiki\/Themes\nhttps:\/\/github.com\/robbyrussell\/oh-my-zsh\/wiki\/External-themes\nhttps:\/\/github.com\/unixorn\/awesome-zsh-plugins#themes<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">5.4 \u63d2\u4ef6<\/h4>\n\n\n\n<p>Oh My Zsh \u9ed8\u8ba4\u81ea\u5e26\u4e86\u4e00\u4e9b\u9ed8\u8ba4\u63d2\u4ef6\uff0c\u5b58\u653e\u5728<code>~\/.oh-my-zsh\/plugins<\/code>\u76ee\u5f55\u4e2d\u3002\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u8fd9\u4e9b\u63d2\u4ef6:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls ~\/.oh-my-zsh\/plugins\n\nadb               cask               dirpersist    \nalias-finder      catimg             django        \nansible           celery             dnf           \nant               chruby             dnote         \napache2-macports  chucknorris        docker        \narcanist          cloudapp           docker-compose\narchlinux         cloudfoundry       docker-machine\n...\n...<\/code><\/pre>\n\n\n\n<p>\u6211\u4eec\u6253\u5f00.zshrc\u914d\u7f6e\u6587\u4ef6, \u5b9a\u4f4d\u5230plugins,<br>\u53ef\u4ee5\u770b\u5230\u9ed8\u8ba4\u53ea\u5f00\u542f\u4e86git\u63d2\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8981\u4f7f\u7528\u7684\u63d2\u4ef6\u7684\u540d\u5b57\u4ee5\u7a7a\u683c\u76f8\u9694\u6216\u8005\u6362\u884c\u63a5\u5728\u540e\u9762\u5c31\u53ef\u4ee5\u4e86\uff0c\u6bd4\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vim ~\/.zshrc\n\nplugins=(\n  git\n  osx\n  autojump\n  systemd\n  yum\n  common-aliases\n  git-flow\n  history-substring-search\n  node\n  npm\n  docker\n  tmux\n  navi\n)<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u6211\u4eec\u8981\u4e0b\u8f7d\u7b2c\u4e09\u65b9\u7684\u63d2\u4ef6\uff0c\u53ea\u9700\u8981\u628a\u63d2\u4ef6\u4e0b\u8f7d\u5b58\u653e\u5230<code>~\/.oh-my-zsh\/plugins<\/code>\u4e2d\uff0c\u7136\u540e\u5728\u4e0a\u9762\u52a0\u4e0a\u63d2\u4ef6\u7684\u540d\u5b57\u5373\u53ef\uff1b<\/p>\n\n\n\n<p>\u66f4\u591a\u63d2\u4ef6\u8be6\u60c5\u89c1:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/robbyrussell\/oh-my-zsh\/wiki\/Plugins-Overview\nhttps:\/\/github.com\/unixorn\/awesome-zsh-plugins<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h5 class=\"wp-block-heading\">5.4.1 \u63a8\u8350\u63d2\u4ef6<\/h5>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><a href=\"https:\/\/github.com\/denisidoro\/navi\">navi &#8211; denisidoro<\/a><\/strong><\/p>\n<\/blockquote>\n\n\n\n<p>\u5f00\u53d1\u8005\u662f\u4e00\u4f4d\u6765\u81ea\u5df4\u897f\u7684\u5c0f\u54e5Denis Isidoro\u3002 \u5f00\u53d1\u7684\u5de5\u5177 <code>navi<\/code> \u3002<\/p>\n\n\n\n<p><em>Linux\u7528\u6237\u7684\u65e5\u5e38\u56f0\u60d1<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u65b0\u547d\u4ee4 \u7528\u5b8c\u5c31\u5fd8 \uff1f<\/li>\n\n\n\n<li>\u4e00\u65f6\u60f3\u4e0d\u8d77\u6765\u547d\u4ee4\u7684\u5355\u8bcd\u600e\u4e48\u62fc\uff1f<\/li>\n\n\n\n<li>\u547d\u4ee4 \u6587\u6863\u592a\u591a\u53cd\u590d\u767e\u5ea6\u67e5\uff1f<\/li>\n<\/ul>\n\n\n\n<p>\u90a3\u4e48\u4f60\u53ef\u4ee5\u770b\u770b\u8fd9\u4e2a\u5de5\u5177 <code>navi<\/code> \u7528\u4e8e\u547d\u4ee4\u884c\u7684\u4ea4\u4e92\u5f0f\u5907\u5fd8\u5355\u5de5\u5177\uff1a<br>\u5b89\u88c5\u4e86navi\u540e\uff0c\u53ea\u8981\u952e\u5165\u4e00\u4e2a\u5355\u8bcd\uff0c\u901f\u67e5\u8868\u4e2d\u76f8\u5173\u7684\u547d\u4ee4\u4ee5\u53ca\u7528\u6cd5\u6ce8\u91ca\u5c31\u4f1a\u5b9e\u65f6\u663e\u793a\u5728\u4e0b\u65b9\u3002\u627e\u5230\u4ee5\u540e\u6211\u4eec\u60f3\u8981\u7684\u547d\u4ee4\u540e\uff0c\u7528\u65b9\u5411\u952e\u9009\u4e2d\u540e\u5373\u53ef\u76f4\u63a5\u8fd0\u884c\u547d\u540d\u3002<br><img decoding=\"async\" src=\"http:\/\/img.itFinn.com\/var\/www\/content\/images\/0\/69\/81a4e5dcdc338da30470b771d0528.gif\" alt=\"\"><\/p>\n\n\n\n<p>\u786e\u4fdd\u5df2\u914d\u7f6eoh-my-zsh $ ZSH_CUSTOM\u76ee\u5f55\uff0c\u7136\u540e\u5c06navi\u514b\u9686\u5230plugins\u76ee\u5f55\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plugins_dir=\"$ZSH_CUSTOM\/plugins\"\nmkdir -p \"$plugins_dir\"\ncd \"$plugins_dir\"\ngit clone https:\/\/github.com\/denisidoro\/navi<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\uff0c\u5c06\u5176\u6dfb\u52a0\u5230oh-my-zsh\u63d2\u4ef6\u6570\u7ec4\u4ee5\u81ea\u52a8\u542f\u7528zsh\u5c0f\u90e8\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vim ~\/.zshrc\n\n# \u5982\u679c\u53ea\u6709\u5df2\u6709\u914d\u7f6e\u63d2\u4ef6, \u8bf7\u5728\u65b0\u884c\u6dfb\u52a0\nplugins=(\n  docker \n  tmux \n  fzf \n  navi\n)<\/code><\/pre>\n\n\n\n<p>\u6700\u540e\uff0c\u91cd\u65b0\u52a0\u8f7d\u60a8\u7684zshrc\u6216\u751f\u6210\u4e00\u4e2a\u65b0\u7ec8\u7aef\u4ee5\u52a0\u8f7dnavi\u3002\u5b8c\u6210\u6b64\u64cd\u4f5c\u540e\uff0c\u65e0\u9700\u8fdb\u884c\u5176\u4ed6\u8bbe\u7f6e\uff0c\u60a8\u5e94\u8be5\u53ef\u4ee5\u5c06\u5176\u7528\u4f5c\u5916\u58f3\u7a0b\u5e8f\u5c0f\u90e8\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ source ~\/.zshrc<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><a href=\"https:\/\/github.com\/wting\/autojump\">autojump &#8211; wting<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>\u5728\u7ec8\u7aef\u7684\u6587\u4ef6\u5939\u8df3\u8f6c\u975e\u5e38\u9ebb\u70e6\uff0c\u9700\u8981\u6572\u957f\u957f\u7684\u8def\u5f84\u3002<br>alias \u522b\u540d\u4e5f\u4e0d\u662f\u5f88\u65b9\u4fbf\u3002<br><code>autojump<\/code> \u662f\u901a\u8fc7\u8bb0\u5f55\u8fdb\u5165\u8fc7\u7684\u76ee\u5f55\u5230\u6570\u636e\u5e93\u6765\u5b9e\u73b0\u7684\uff0c\u6240\u4ee5\u5fc5\u987b\u662f\u66fe\u7ecf\u8fdb\u5165\u8fc7\u7684\u76ee\u5f55\u624d\u80fd\u8df3\u8f6c\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5 <code>autojump<\/code>\uff0c\u914d\u7f6e\u5230 oh-my-zsh \u4e2d==\u8981\u91cd\u542f==\u6c38\u4e45\u751f\u6548;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo yum install autojump autojump-zsh -y<\/code><\/pre>\n\n\n\n<p><strong>\u7528\u6cd5<\/strong><br>\u53ea\u6709\u6253\u5f00\u8fc7\u7684\u76ee\u5f55 autojump \u624d\u4f1a\u8bb0\u5f55\uff0c\u6240\u4ee5\u4f7f\u7528\u65f6\u95f4\u8d8a\u957f\uff0cautojump \u624d\u4f1a\u8d8a\u667a\u80fd\u3002<br>\u53ef\u4ee5\u4f7f\u7528 <code>autojump<\/code> \u547d\u4ee4\uff0c\u6216\u8005\u4f7f\u7528\u77ed\u547d\u4ee4 <code>j<\/code>.<\/p>\n\n\n\n<p>1.\u8df3\u8f6c\u5230\u6307\u5b9a\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>j directoryName<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u4e0d\u77e5\u9053\u76ee\u5f55\u5168\u540d\uff0c\u8f93\u5165\u4e00\u90e8\u5206\uff0c\u6309Tab\u952e\u5c31\u597d\uff0c\u8f93\u9519\u4e86\u4e5f\u6ca1\u5173\u7cfb\uff0c\u53ef\u4ee5\u81ea\u52a8\u8bc6\u522b\uff0c\u975e\u5e38\u5f3a\u5927\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u26a1 root@finn # ~ $ j apps\n\/root\/apps\n\u26a1 root@finn # ~\/apps $ j apps\n\/root\/apps\/autojump<\/code><\/pre>\n\n\n\n<p>Tab \u952e\u6548\u679c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u26a1 root@finn # ~ $ j apps__(Tab \u952e\u81ea\u52a8\u6dfb\u52a0\u4e86\u4e0b\u5212\u7ebf, \u8f93\u5165\u6570\u5b57\u56de\u8f66\u5219\u8df3\u8f6c\u6307\u5b9a\u76ee\u5f55)\napps__1__\/root\/apps           apps__2__\/root\/apps           apps__3__\/root\/apps           apps__4__\/root\/apps\/autojump\n\n-&gt;\n\n\u26a1 root@finn # ~ $ j apps__4\n\/root\/apps\/autojump\n\u26a1 root@finn # ~\/apps\/autojump $ <\/code><\/pre>\n\n\n\n<p>2.\u8df3\u8f6c\u5230\u6307\u5b9a\u76ee\u5f55\u7684\u5b50\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jc directoryName<\/code><\/pre>\n\n\n\n<p>\u6548\u679c\u5982\u4e0b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u26a1 root@finn # ~\/apps\/autojump $ l\ntotal 12K\n-rw-r--r-- 1 root root 11K 2019-10-24 02:39:45 dracula.zip\ndrwxr-xr-x 4 root root  89 2019-10-26 21:40:23 zsh-master\/\n\u26a1 root@finn # ~\/apps\/autojump $ jc\n\/root\/apps\/autojump\/zsh-master\n\u26a1 root@finn # ~\/apps\/autojump\/zsh-master $ <\/code><\/pre>\n\n\n\n<p>3.\u67e5\u770b\u6743\u91cd<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>j --stat<\/code><\/pre>\n\n\n\n<p>\u6548\u679c\u5982\u4e0b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u26a1 root@finn # ~ $ j --stat\n22.4:    \/root\/apps\/autojump\/zsh-master\n22.4:    \/root\/.oh-my-zsh\n30.0:    \/root\/apps\/autojump\n42.4:    \/root\/apps\n________________________________________\n\n117:      total weight\n4:        number of entries\n0.00:     current directory weight\n\ndata:     \/root\/.local\/share\/autojump\/autojump.txt<\/code><\/pre>\n\n\n\n<p>\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539autojump.txt\u7684\u6743\u91cd\u503c, \u4ea7\u751f\u4e0d\u540c\u7684\u6548\u679c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vim \/root\/.local\/share\/autojump\/autojump.txt<\/code><\/pre>\n\n\n\n<p>4.\u6216\u8005\u67e5\u770b\u5e2e\u52a9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u26a1 root@finn # ~ $ j -h\nusage: autojump &#91;-h] &#91;-a DIRECTORY] &#91;-i &#91;WEIGHT]] &#91;-d &#91;WEIGHT]] &#91;--complete]\n                &#91;--purge] &#91;-s] &#91;-v]\n                &#91;DIRECTORY &#91;DIRECTORY ...]]\n\nAutomatically jump to directory passed as an argument.\n\npositional arguments:\n  DIRECTORY             directory to jump to\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -a DIRECTORY, --add DIRECTORY add path\n  -i &#91;WEIGHT], --increase &#91;WEIGHT] increase current directory weight\n  -d &#91;WEIGHT], --decrease &#91;WEIGHT] decrease current directory weight\n  --complete            used for tab completion\n  --purge               remove non-existent paths from database\n  -s, --stat            show database entries and their key weights\n  -v, --version         show version information\n\nPlease see autojump(1) man pages for full documentation.<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><a href=\"https:\/\/github.com\/zsh-users\/zsh-syntax-highlighting\">zsh-syntax-highlighting &#8211; zsh-users<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>\u8fd9\u662f\u4e00\u4e2a\u547d\u4ee4\u9ad8\u4eae\u63d2\u4ef6\uff0c\u8f93\u5165\u4e3a\u7eff\u8272\u65f6\u8868\u793a\u53ef\u7528\u547d\u4ee4\uff0c\u8def\u5f84\u5e26\u6709\u4e0b\u5212\u7ebf\u65f6\u8868\u793a\u53ef\u7528\u8def\u5f84\u3002<br>\u63d2\u4ef6\u5b89\u88c5\uff1a<a href=\"https:\/\/github.com\/zsh-users\/zsh-syntax-highlighting\/blob\/master\/INSTALL.md\">How to install<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># 1.\u514b\u9686\u5230\u63d2\u4ef6\u76ee\u5f55\uff1a\n\u26a1 root@finn # ~ $ git clone https:\/\/github.com\/zsh-users\/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~\/.oh-my-zsh\/custom}\/plugins\/zsh-syntax-highlighting\n\n# 2.\u4fee\u6539\u914d\u7f6e\u6587\u4ef6.zshrc:\n\u26a1 root@finn # ~ $ vi ~\/.zshrc\n\nplugins=(git zsh-syntax-highlighting)\n\n# 3.\u6700\u540e\u522b\u5fd8\u4e86\u8ba9\u914d\u7f6e\u751f\u6548\nsource .zshrc<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u4ee5\u4e0a\u6587\u7ae0\u53c2\u8003\u6765\u81ea:<br><a href=\"https:\/\/www.jianshu.com\/p\/15f0ffaa88d7\">Linux \u61d2\u4eba\u5de5\u5177 &#8211; autojump &#8211; zzpwestlife<\/a><br><a href=\"https:\/\/blog.csdn.net\/li_xue_zhao\/article\/details\/79818390\">centos7 \u5b89\u88c5zsh\u548c\u4f7f\u7528oh-my-zsh &#8211; \u6458\u661f\u8fb0Li<\/a><br><a href=\"https:\/\/www.cnblogs.com\/monsterdev\/p\/11166720.html\">Oh-My-Zsh\u7684\u914d\u7f6e\u4e0e\u4f7f\u7528 &#8211; \u518d\u89c1\u7406\u60f3_<\/a><br><a href=\"https:\/\/www.jianshu.com\/p\/0b411c0d7203\">\u5b8c\u7f8e\u7684Linux\u4e4b\u3010navi\u3011\u4f7f\u7528\u7b14\u8bb0 &#8211; \u6211\u4eec\u90fd\u5f88\u52aa\u529b\u7740<\/a><br><a href=\"https:\/\/blog.csdn.net\/czg13548930186\/article\/details\/72858289\">\u5229\u7528Oh-My-Zsh\u6253\u9020\u4f60\u7684\u8d85\u7ea7\u7ec8\u7aef &#8211; \u79cd\u74dc\u5927\u7237<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u4ec0\u4e48\u662fShell \u76f8\u5bf9\u4e8e\u5185\u6838\u6765\u8bf4\uff0cShell\u662fLinux\/Unix\u7684\u4e00\u4e2a\u5916\u58f3\uff0c\u5b83\u8d1f\u8d23\u5916\u754c\u4e0eLinux\u5185\u6838\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-development"],"_links":{"self":[{"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":1,"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itfinn.com\/index.php\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}