https://cloud.tencent.com/developer/article/2092486 - {
- "props": {
- "isMobile": false,
- "isSupportWebp": true,
- "reqId": "kzKA6Keh4QbNhK8pHvf3-",
- "query": {
- "articleId": "2092486"
- },
- "platform": "other",
- "env": "production",
- "__N_SSP": true,
- "pageProps": {
- "fallback": {
- "#url:"/api/article/detail",params:#articleId:2092486,,": {
- "articleData": {
- "articleId": 2092486,
- "wordsNum": 1308,
- "codeLineNum": 56,
- "readingTime": 285
- },
- "articleInfo": {
- "articleId": 2092486,
- "channel": 2,
- "columnId": 96031,
- "commentNum": 0,
- "content": {
- "blocks": [{
- "key": "2p3nu",
- "text": "preface",
- "type": "header-two",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "text": "preface"
- }
- }, {
- "key": "756f7",
- "text": "一直以来我在 Linux 终端用的 shell 都是 zsh,相比默认的 bash 来说,配合上插件的 zsh 功能更加强大并且十分美观,今天刚好要在服务器上重新配置一遍,顺便就记录一下。",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "2s43c",
- "text": "安装 zsh",
- "type": "header-two",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "text": "%E5%AE%89%E8%A3%85-zsh"
- }
- }, {
- "key": "fmj6f",
- "text": "zsh 在默认的情况下是没有安装的(除非是 Mac),因此我们得先将 zsh 安装好,我这里是 centOS 的服务器,所以用 yum 包管理器安装,ubuntu 直接用 apt 是一样的",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "7l2bh",
- "text": "$ yum install zsh",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "asp88",
- "text": "安装完成后用 cat /etc/shells 可以看到机器上现存的 shell 的种类",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 7,
- "length": 15,
- "style": "CODE"
- }],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "d6vd5",
- "text": "/bin/sh\n/bin/bash\n/usr/bin/sh\n/usr/bin/bash\n/bin/zsh",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "5p5j6",
- "text": "然后将我们默认的 shell 变成 zsh,重启终端,输入 echo $SHELL 就可以看到此时的 shell 变成了 zsh",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 30,
- "length": 11,
- "style": "CODE"
- }],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "eqfpd",
- "text": "$ chsh -s /bin/zsh",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "2sgaj",
- "text": "安装 oh-my-zsh",
- "type": "header-two",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "text": "%E5%AE%89%E8%A3%85-oh-my-zsh"
- }
- }, {
- "key": "9dpak",
- "text": "默认的 zsh 用起来没啥感觉,我们得配合上 oh-my-zsh 来使用。安装 oh-my-zsh 直接用官方 GitHub 上的命令将安装脚本 wget 下来再进行安装",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [{
- "offset": 23,
- "length": 9,
- "key": 0
- }],
- "data": {}
- }, {
- "key": "2sl92",
- "text": "sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "fgb7b",
- "text": "经过一段时间的安装之后就会出现这个界面,代表 oh-my-zsh 已经安装好了",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "20ptf",
- "text": "\ud83d",
- "type": "atomic",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [{
- "offset": 0,
- "length": 1,
- "key": 1
- }],
- "data": {}
- }, {
- "key": "ensl1",
- "text": "然后重启终端就能够看到漂亮的界面了!",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "13u9b",
- "text": "\ud83d",
- "type": "atomic",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [{
- "offset": 0,
- "length": 1,
- "key": 2
- }],
- "data": {}
- }, {
- "key": "3f7ki",
- "text": "安装插件",
- "type": "header-two",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "text": "%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6"
- }
- }, {
- "key": "79tnu",
- "text": "oh-my-zsh 自带了十分多的插件,插件目录在 .oh-my-zsh/plugins 里面,默认开启了 git 插件,其实还有很多好用的插件,比如只需要输入 extract 就能够解压压缩包的 extract 插件,也有 GitHub 上开源的插件,配合上这些插件真的可以使效率提高。",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 26,
- "length": 18,
- "style": "CODE"
- }, {
- "offset": 81,
- "length": 7,
- "style": "CODE"
- }],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "1plmc",
- "text": "插件管理器 antigen",
- "type": "header-three",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "text": "%E6%8F%92%E4%BB%B6%E7%AE%A1%E7%90%86%E5%99%A8-antigen"
- }
- }, {
- "key": "2bkle",
- "text": "说到插件就不得不提 antigen 了,这回配置插件我都是用的 antigen,不得不说比上次一个一个下载舒服多了,只需要在 .zshrc 文件中加上一下插件名字 antigen 就会自动帮我们下载好插件,我们来看看怎么安装这玩意",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 63,
- "length": 6,
- "style": "CODE"
- }],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "b1av9",
- "text": "ubuntu 系统下直接用 apt 包管理器进行安装",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "40qfh",
- "text": "$ apt-get install zsh-antigen",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "b72lf",
- "text": "centOS 或者没有 sudo 权限的话就将仓库 clone 下来,最好 clone 到隐藏目录,因为平时不用用到它",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "ck8kv",
- "text": "$ git clone https://github.com/zsh-users/antigen.git ~/.antigen",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "712qd",
- "text": "接下来对 .zshrc 进行编辑,一个标准的案例如下所示",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 5,
- "length": 6,
- "style": "CODE"
- }],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "4n4c1",
- "text": "source /path-to-antigen/antigen.zsh\n\n# Load the oh-my-zsh's library.\nantigen use oh-my-zsh\n\n# Bundles from the default repo (robbyrussell's oh-my-zsh).\nantigen bundle git\nantigen bundle docker\nantigen bundle command-not-found\n\n# Syntax highlighting bundle.\nantigen bundle zsh-users/zsh-syntax-highlighting\n\n# Load the theme.\nantigen theme robbyrussell\n\n# Tell Antigen that you're done.\nantigen apply",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "aksej",
- "text": "推荐几个挺牛逼的插件,基本都是在 GitHub 的 zsh-users 项目中能够找到的,也能够直接被 antigen 安装,在上面的文件中直接加入下面几行就行了",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "9r9sf",
- "text": "antigen bundle zsh-users/zsh-autosuggestions\nantigen bundle zsh-users/zsh-completions",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "csvkm",
- "text": "使用 oh-my-zsh 自带的插件也只需要 antigen bundle \u003cplugin\u003e 就行了,插件在 oh-my-zsh/plugins 中可以找到,有很多很多,官方的插件介绍在这里可以找到,其中推荐一款插件叫 autojump ,需要先在电脑上安装好才能在 .zshrc 里面添加插件",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 23,
- "length": 23,
- "style": "CODE"
- }, {
- "offset": 55,
- "length": 17,
- "style": "CODE"
- }, {
- "offset": 110,
- "length": 8,
- "style": "CODE"
- }, {
- "offset": 134,
- "length": 6,
- "style": "CODE"
- }],
- "entityRanges": [{
- "offset": 92,
- "length": 3,
- "key": 3
- }],
- "data": {}
- }, {
- "key": "f0a5j",
- "text": "$ yum install autojump-zsh",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "agg7c",
- "text": "主题",
- "type": "header-two",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "text": "%E4%B8%BB%E9%A2%98"
- }
- }, {
- "key": "8jdhf",
- "text": "这个没啥说的,主题浏览在这儿,选择自己喜欢的就行了,不过有些需要下载 powerline 字体才能显示出各种炫酷的 emoji,其实 JetBrains Mono 这款字体就挺不错的,我比较喜欢的三款主题是默认的主题和 ys 以及 agnoster。",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 110,
- "length": 2,
- "style": "CODE"
- }, {
- "offset": 116,
- "length": 8,
- "style": "CODE"
- }],
- "entityRanges": [{
- "offset": 11,
- "length": 3,
- "key": 4
- }],
- "data": {}
- }, {
- "key": "e6k57",
- "text": "p.s.",
- "type": "header-two",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "text": "p.s."
- }
- }, {
- "key": "fhhvl",
- "text": "另外,在 zsh 下,可能用不了 HOME 和 END 键,网上搜了一下,需要在 .zshrc 中加入下面这些内容",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [{
- "offset": 17,
- "length": 4,
- "style": "CODE"
- }, {
- "offset": 24,
- "length": 3,
- "style": "CODE"
- }, {
- "offset": 41,
- "length": 6,
- "style": "CODE"
- }],
- "entityRanges": [],
- "data": {}
- }, {
- "key": "8von4",
- "text": "# key bindings\nbindkey "\e[1~" beginning-of-line\nbindkey "\e[4~" end-of-line\nbindkey "\e[5~" beginning-of-history\nbindkey "\e[6~" end-of-history\nbindkey "\e[3~" delete-char\nbindkey "\e[2~" quoted-insert\nbindkey "\e[5C" forward-word\nbindkey "\eOc" emacs-forward-word\nbindkey "\e[5D" backward-word\nbindkey "\eOd" emacs-backward-word\nbindkey "\ee[C" forward-word\nbindkey "\ee[D" backward-word\nbindkey "^H" backward-delete-word\n# for rxvt\nbindkey "\e[8~" end-of-line\nbindkey "\e[7~" beginning-of-line\n# for non RH/Debian xterm, can't hurt for RH/DEbian xterm\nbindkey "\eOH" beginning-of-line\nbindkey "\eOF" end-of-line\n# for freebsd console\nbindkey "\e[H" beginning-of-line\nbindkey "\e[F" end-of-line\n# completion in the middle of a line\nbindkey '^i' expand-or-complete-prefix",
- "type": "code-block",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {
- "syntax": "javascript"
- }
- }, {
- "key": "cv6aq",
- "text": "强烈建议使用新机子前先参照本篇文章进行 zsh 的配置,舒服的不是一点点!",
- "type": "unstyled",
- "depth": 0,
- "inlineStyleRanges": [],
- "entityRanges": [],
- "data": {}
- }],
- "entityMap": {
- "0": {
- "type": "LINK",
- "mutability": "MUTABLE",
- "data": {
- "url": "https://github.com/ohmyzsh/ohmyzsh"
- }
- },
- "1": {
- "type": "IMAGE",
- "mutability": "IMMUTABLE",
- "data": {
- "imageUrl": "https://ask.qcloudimg.com/http-save/yehe-9862306/ffc2f9eeb72884b9b37c5521ee83dd6f.png",
- "imageAlt": "oh-my-zsh",
- "blockWidth": 736,
- "blockHeight": 386
- }
- },
- "2": {
- "type": "IMAGE",
- "mutability": "IMMUTABLE",
- "data": {
- "imageUrl": "https://ask.qcloudimg.com/http-save/yehe-9862306/cf73583845b8385cf2a7358e00ccc68a.png",
- "imageAlt": "image.png",
- "blockWidth": 793,
- "blockHeight": 67
- }
- },
- "3": {
- "type": "LINK",
- "mutability": "MUTABLE",
- "data": {
- "url": "https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins"
- }
- },
- "4": {
- "type": "LINK",
- "mutability": "MUTABLE",
- "data": {
- "url": "https://github.com/ohmyzsh/ohmyzsh/wiki/Themes"
- }
- }
- }
- },
- "createTime": 1662097432,
- "ext": {
- "closeTextLink": 0,
- "focusRead": 0,
- "comment_ban": 0,
- "description": ""
- },
- "favNum": 0,
- "isOriginal": 0,
- "likeNum": 2,
- "pic": "https://ask.qcloudimg.com/http-save/yehe-9862306/ffc2f9eeb72884b9b37c5521ee83dd6f.png",
- "plain": "preface\n一直以来我在 Linux 终端用的 shell 都是 zsh,相比默认的 bash 来说,配合上插件的 zsh 功能更加强大并且十分美观,今天刚好要在服务器上重新配置一遍,顺便就记录一下。\n安装 zsh\nzsh 在默认的情况下是没有安装的(除非是 Mac),因此我们得先将 zsh 安装好,我这里是 centOS 的服务器,所以用 yum 包管理器安装,ubuntu 直接用 apt 是一样的\n$ yum install zsh\n安装完成后用 cat /etc/shells 可以看到机器上现存的 shell 的种类\n/bin/sh\n/bin/bash\n/usr/bin/sh\n/usr/bin/bash\n/bin/zsh\n然后将我们默认的 shell 变成 zsh,重启终端,输入 echo $SHELL 就可以看到此时的 shell 变成了 zsh\n$ chsh -s /bin/zsh\n安装 oh-my-zsh\n默认的 zsh 用起来没啥感觉,我们得配合上 oh-my-zsh 来使用。安装 oh-my-zsh 直接用官方 GitHub 上的命令将安装脚本 wget 下来再进行安装\nsh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"\n经过一段时间的安装之后就会出现这个界面,代表 oh-my-zsh 已经安装好了\n📷\n然后重启终端就能够看到漂亮的界面了!\n📷\n安装插件\noh-my-zsh 自带了十分多的插件,插件目录在 .oh-my-zsh/plugins 里面,默认开启了 git 插件,其实还有很多好用的插件,比如只需要输入 extract 就能够解压压缩包的 extract 插件,也有 GitHub 上开源的插件,配合上这些插件真的可以使效率提高。\n插件管理器 antigen\n说到插件就不得不提 antigen 了,这回配置插件我都是用的 antigen,不得不说比上次一个一个下载舒服多了,只需要在 .zshrc 文件中加上一下插件名字 antigen 就会自动帮我们下载好插件,我们来看看怎么安装这玩意\nubuntu 系统下直接用 apt 包管理器进行安装\n$ apt-get install zsh-antigen\ncentOS 或者没有 sudo 权限的话就将仓库 clone 下来,最好 clone 到隐藏目录,因为平时不用用到它\n$ git clone https://github.com/zsh-users/antigen.git ~/.antigen\n接下来对 .zshrc 进行编辑,一个标准的案例如下所示\nsource /path-to-antigen/antigen.zsh\n\n# Load the oh-my-zsh's library.\nantigen use oh-my-zsh\n\n# Bundles from the default repo (robbyrussell's oh-my-zsh).\nantigen bundle git\nantigen bundle docker\nantigen bundle command-not-found\n\n# Syntax highlighting bundle.\nantigen bundle zsh-users/zsh-syntax-highlighting\n\n# Load the theme.\nantigen theme robbyrussell\n\n# Tell Antigen that you're done.\nantigen apply\n推荐几个挺牛逼的插件,基本都是在 GitHub 的 zsh-users 项目中能够找到的,也能够直接被 antigen 安装,在上面的文件中直接加入下面几行就行了\nantigen bundle zsh-users/zsh-autosuggestions\nantigen bundle zsh-users/zsh-completions\n使用 oh-my-zsh 自带的插件也只需要 antigen bundle \u003cplugin\u003e 就行了,插件在 oh-my-zsh/plugins 中可以找到,有很多很多,官方的插件介绍在这里可以找到,其中推荐一款插件叫 autojump ,需要先在电脑上安装好才能在 .zshrc 里面添加插件\n$ yum install autojump-zsh\n主题\n这个没啥说的,主题浏览在这儿,选择自己喜欢的就行了,不过有些需要下载 powerline 字体才能显示出各种炫酷的 emoji,其实 JetBrains Mono 这款字体就挺不错的,我比较喜欢的三款主题是默认的主题和 ys 以及 agnoster。\np.s.\n另外,在 zsh 下,可能用不了 HOME 和 END 键,网上搜了一下,需要在 .zshrc 中加入下面这些内容\n# key bindings\nbindkey "\e[1~" beginning-of-line\nbindkey "\e[4~" end-of-line\nbindkey "\e[5~" beginning-of-history\nbindkey "\e[6~" end-of-history\nbindkey "\e[3~" delete-char\nbindkey "\e[2~" quoted-insert\nbindkey "\e[5C" forward-word\nbindkey "\eOc" emacs-forward-word\nbindkey "\e[5D" backward-word\nbindkey "\eOd" emacs-backward-word\nbindkey "\ee[C" forward-word\nbindkey "\ee[D" backward-word\nbindkey "^H" backward-delete-word\n# for rxvt\nbindkey "\e[8~" end-of-line\nbindkey "\e[7~" beginning-of-line\n# for non RH/Debian xterm, can't hurt for RH/DEbian xterm\nbindkey "\eOH" beginning-of-line\nbindkey "\eOF" end-of-line\n# for freebsd console\nbindkey "\e[H" beginning-of-line\nbindkey "\e[F" end-of-line\n# completion in the middle of a line\nbindkey '^i' expand-or-complete-prefix\n强烈建议使用新机子前先参照本篇文章进行 zsh 的配置,舒服的不是一点点!",
- "showReadNum": 636,
- "sourceType": 99,
- "status": 2,
- "summary": "一直以来我在 Linux 终端用的 shell 都是 zsh,相比默认的 bash 来说,配合上插件的 zsh 功能更加强大并且十分美观,今天刚好要在服务器上重新配置一遍,顺便就记录一下。",
- "tagIds": [10680, 10284, 10283, 10667, 10312],
- "title": "终端配置zsh shell",
- "uid": 9862306,
- "updateTime": 1662097432,
- "userSummary": "",
- "userUpdateTime": 1662097432
- },
- "authorInfo": {
- "uid": 9862306,
- "nickname": "棒棒鸡不棒",
- "avatarUrl": "https://ask.qcloudimg.com/http-save/yehe-9862306/36edfab691c5f9a2acbbd5d93f29ef44.jpg",
- "introduce": "",
- "isProfessionVerified": 0,
- "company": "",
- "title": ""
- },
- "authorType": {
- "isInternalAuthor": 0,
- "isCoCreator": 0,
- "isOriginalAuthor": 0,
- "isBlogMoveAuthor": 0
- },
- "classify": [{
- "12": "运维"
- }],
- "columnInfo": {
- "columnAvatar": "https://imgcache.qq.com/qcloud/developer/images/release/column-icons/2.png",
- "columnDesc": "",
- "columnId": 96031,
- "columnName": "文鹃阁",
- "createTime": 1656813082,
- "createUid": 9862306,
- "memberNum": 1,
- "showArticleNum": 108,
- "showConcernNum": 26
- },
- "cost": {
- "checkTencent": 4,
- "getAuthorInfo": 24,
- "getTextLink": 27,
- "needArticleData": 1,
- "needBlog": 3,
- "needClassify": 3,
- "needColumn": 3,
- "needDetail": 4,
- "needLongtailTag": 15,
- "needTag": 25,
- "queryUserAuthorType": 14
- },
- "editTime": 0,
- "isTencent": false,
- "longtailTags": [],
- "publishTime": 1662097432,
- "sourceDetail": {
- "blogType": 2,
- "blogUrl": "https://szukevin.site/",
- "channelSource": "szukevin",
- "originalTime": "8, 2020",
- "sourceAuthor": "",
- "sourceLink": "https://szukevin.site/2020/06/08/终端配置zsh-shell/",
- "wechatNickName": "",
- "wechatUserName": ""
- },
- "tags": [{
- "tagId": 10680,
- "tagName": "shell",
- "categoryId": 3,
- "groupId": 10136,
- "groupName": "服务器技术",
- "createTime": "2018-09-06 18:31:32"
- }, {
- "tagId": 10284,
- "tagName": "github",
- "categoryId": 3,
- "groupId": 10133,
- "groupName": "开发技术",
- "createTime": "2018-05-11 12:34:02"
- }, {
- "tagId": 10283,
- "tagName": "git",
- "categoryId": 3,
- "groupId": 10133,
- "groupName": "开发技术",
- "createTime": "2018-05-11 12:33:57"
- }, {
- "tagId": 10667,
- "tagName": "开源",
- "categoryId": 3,
- "groupId": 10552,
- "groupName": "其他",
- "createTime": "2018-09-06 18:30:02"
- }, {
- "tagId": 10312,
- "tagName": "centos",
- "categoryId": 3,
- "groupId": 10136,
- "groupName": "服务器技术",
- "createTime": "2018-05-11 12:37:45"
- }],
- "textLink": [{
- "id": 3708,
- "text": "包管理器",
- "link": "https://cloud.tencent.com/developer/techpedia/2011",
- "sources": [2],
- "ext": {
- "termId": 2011,
- "pCategoryId": 1002,
- "categoryId": 1026,
- "categoryName": "通用技术 - 操作系统",
- "name": "包管理器",
- "desc": "包管理器是一种软件工具,用于自动化软件包的安装、更新、配置和删除。它可以使用户更方便地管理系统中的软件,并确保软件的正确性和稳定性。包管理器通常包含一个软件仓库,其中存储了各种软件包及其相关信息,包括版本、依赖关系和许可证等。用户可以通过包管理器从软件仓库中选择并下载所需的软件包,然后自动安装和配置它们,而无需手动处理复杂的依赖关系和安装步骤。",
- "kpCount": 10
- }
- }, {
- "id": 374,
- "text": "服务器",
- "link": "https://cloud.tencent.com/act/pro/promotion-cvm",
- "sources": [1, 2],
- "ext": {
- "termId": 2248,
- "pCategoryId": 1002,
- "categoryId": 1020,
- "categoryName": "通用技术 - 云计算",
- "name": "服务器",
- "desc": "服务器是一种计算机硬件和软件系统,其主要功能是为其他计算机(通常称为客户端)提供服务、资源和数据。服务器可以处理来自客户端的请求,例如文件共享、应用程序访问、数据存储和检索、网络服务等。服务器通常具有较高的处理能力、内存和存储容量,以便能够同时处理多个客户端的请求。\n\n服务器可以分为不同类型,如文件服务器、数据库服务器、Web服务器、邮件服务器等,根据其提供的服务和功能而有所不同。服务器可以部署在本地数据中心、企业内部网络或云计算环境中,以满足不同的业务需求和应用场景。",
- "kpCount": 13
- }
- }, {
- "id": 444,
- "text": "docker",
- "link": "https://cloud.tencent.com/product/tke",
- "sources": [1, 2],
- "ext": {
- "termId": 1528,
- "pCategoryId": 1002,
- "categoryId": 1024,
- "categoryName": "通用技术 - 云原生",
- "name": "Docker",
- "desc": "Docker是一个开源的容器平台,它允许开发者将应用程序及其依赖项打包到一个轻量级、可移植的容器中。",
- "kpCount": 3
- }
- }, {
- "id": 3662,
- "text": "Debian",
- "link": "https://cloud.tencent.com/developer/techpedia/1965",
- "sources": [2],
- "ext": {
- "termId": 1965,
- "pCategoryId": 1002,
- "categoryId": 1026,
- "categoryName": "通用技术 - 操作系统",
- "name": "Debian",
- "desc": "Debian操作系统是一种自由开源的Linux操作系统,它是由全球志愿者组成的社区开发团队开发和维护的。它的目标是提供一个稳定、安全、可靠的操作系统,以及广泛的软件库,可以满足各种需求。",
- "kpCount": 11
- }
- }, {
- "id": 3530,
- "text": "Linux",
- "link": "https://cloud.tencent.com/developer/techpedia/1821",
- "sources": [2],
- "ext": {
- "termId": 1821,
- "pCategoryId": 1002,
- "categoryId": 1026,
- "categoryName": "通用技术 - 操作系统",
- "name": "Linux",
- "desc": "Linux是一种开源的操作系统,它由Linus Torvalds在1991年创建。它基于Unix操作系统,具有高度的稳定性、安全性和可靠性。Linux操作系统可以在各种计算机硬件上运行,包括个人电脑、服务器、移动设备和嵌入式系统。",
- "kpCount": 16
- }
- }]
- }
- },
- "tdk": {
- "title": "终端配置zsh shell-腾讯云开发者社区-腾讯云",
- "keywords": "shell,github,git,开源,centos",
- "description": "一直以来我在 Linux 终端用的 shell 都是 zsh,相比默认的 bash 来说,配合上插件的 zsh 功能更加强大并且十分美观,今天刚好要在服务器上重新配置一遍,顺便就记录一下。"
- },
- "meta": {
- "subject": "通用技术-服务器技术-shell,通用技术-开发技术-github,通用技术-开发技术-git,通用技术-其他-开源,通用技术-服务器技术-centos",
- "subjectTime": "2022-09-02 13:43:52",
- "articleSource": "B",
- "magicSource": "N",
- "authorType": ""
- },
- "link": {
- "canonical": "https://cloud.tencent.com/developer/article/2092486"
- },
- "cssName": ["Article", "DraftMaster", "Player"]
- }
- },
- "page": "/article/[articleId]",
- "query": {
- "articleId": "2092486"
- },
- "buildId": "dKmfSRQNe6z_pO4xsBO4-",
- "assetPrefix": "https://qccommunity.qcloudimg.com/community",
- "isFallback": false,
- "gssp": true,
- "appGip": true,
- "scriptLoader": []
- }
复制代码
|