当前位置: 首页 > news >正文

仪征建设银行官方网站适合30岁短期培训班

仪征建设银行官方网站,适合30岁短期培训班,淘宝客优惠券网站建设,购买seo关键词排名优化官网Mac OS自带的终端,用起来虽然有些不太方便,界面也不够友好,关键是在windows上用习惯了自动补全功能,在Mac上一个个的拼写单词是真的难受,逼着我记英文单词。 经过一天的磨合,我实在忍不了,在网上…

Mac OS自带的终端,用起来虽然有些不太方便,界面也不够友好,关键是在windows上用习惯了自动补全功能,在Mac上一个个的拼写单词是真的难受,逼着我记英文单词。
经过一天的磨合,我实在忍不了,在网上查到了iTerm2这个款终端工具,这是一款相对比较好用的终端工具。
iTerm2常用操作包括主题选择、声明高亮、自动填充建议、隐藏用户名和主机名、分屏效果等。这里主要介绍我使用的自动补全建议、声明高亮,另外几个功能,如果有需求,可以在 参考资料 中找到。

iTerm2 下载与安装

iTerm2下载地址:https://www.iterm2.com/downloads.html

注意:下载的是压缩文件,解压后直接双击执行程序文件,或者直接将它拖到 Applications 目录下。

也可以直接使用Homebrew进行安装:

brew cask install iterm2

iTerm2主题配置,请参考 Mac下iTerm2的安装与配置
Homebrew 安装方法请参考 macbook 安装 Git 和 安装 Homebrew

查看 Mac 系统是否使用 zsh

Mac系统默认使用bash作为终端,但是新的Mac系统已经默认使用zsh,查看方式:

cat /etc/shells

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

bash与zsh切换命令:

chsh -s /bin/zsh
chsh -s /bin/bash

bash与zsh配置文件:

  1. bash的配置文件:~/.bash_profile
  2. zsh的配置文件:~/.zshrc

安装配置 zsh

Zsh 和 bash 一样,是一种 Unix shell,但大多数 Linux 发行版都默认使用 bash shell。但 Zsh有强大的自动补全参数和自定义配置功能等等,Github地址:https://github.com/robbyrussell/oh-my-zsh

  • 安装命令:

sh -c “$(curl -fsSL https: //raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)”

  • 使用 Homebrew 进行安装
    Mac 系统自带了zsh, 一般不是最新版,如果需要最新版可通过Homebrew来安装。

brew install zsh

可通过查看zsh的版本。

zsh --version

安装完成以后,将zsh设置为默认的Shell

chsh -s /bin/zsh

安装 oh-my-zsh

oh-my-zsh 帮我们整理了一些常用的 Zsh 扩展功能和主题:https://github.com/robbyrussell/oh-my-zsh

在终端输入命令:

sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

Cloning into '/root/.oh-my-zsh'...
remote: Counting objects: 712, done.
remote: Compressing objects: 100% (584/584), done.
remote: Total 712 (delta 15), reused 522 (delta 4), pack-reused 0
Receiving objects: 100% (712/712), 443.58 KiB | 27.00 KiB/s, done.
Resolving deltas: 100% (15/15), done.
Checking connectivity... done.
Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc
Copying your current PATH and adding it to the end of ~/.zshrc for you.
Time to change your default shell to zsh!__                                     ______  / /_     ____ ___  __  __   ____  _____/ /_
/ __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_//____/                       ....is now installed!Please look over the ~/.zshrc file to select plugins, themes, and options.
p.s. Follow us at https://twitter.com/ohmyzsh.
p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.

安装完成以后,默认Shell的 ~/.bashrc 文件默认不再加载了,替代的是 ~/.zlogin~/.zshrc 。所以如果你在 ~/.bashrc 里配置了某些设置,需要把她们复制到 ~/.zshrc 中。

oh my zsh 其他安装方式参考 Mac下iTerm2的安装与配置

oh my zsh 目录结构
进入~/.oh-my-zsh目录后,看看该目录的结构

ls ~/.oh-my-zsh

CODE_OF_CONDUCT.md SECURITY.md        log                themes
CONTRIBUTING.md    cache              oh-my-zsh.sh       tools
LICENSE.txt        custom             plugins
README.md          lib                templates

lib 提供了核心功能的脚本库
tools 提供安装、升级等功能的快捷工具
plugins 自带插件的存在放位置
templates 自带模板的存在放位置
themes 自带主题文件的存在放位置
custom 个性化配置目录,自安装的插件和主题可放这里

安装自动补全插件

在终端输入命令:

cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git

安装命令高亮插件

在终端输入命令:

cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

配置 .zshrc 文件

在终端输入命令:

vim ~/.zshrc

打开.zshrc 文件,进入vim 编辑器模式 (按i进入编辑模式)

~/.zshrc 中添加以下内容(我添加在文件末尾):

source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

~/.zshrc 中修改 plugins=(git) 为:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)source $ZSH/oh-my-zsh.sh

保存修改
按 esc 键 =>输入:wq!=>按 enter 键 退出编辑

让配置生效

在终端执行命令

source ~/.zshrc

vim 编辑器基本语法,请参考 macbook 安装 Git 和 安装 Homebrew


参考:
Mac下iTerm2的安装与配置
mac git命令按Tab不能自动补全解决方法
如何配置MAC的终端自动补全命令行,并忽略大小写
MacOS 安装配置 zsh
Mac 终端配置 oh-my-zsh 和自动补全以及命令高亮
Mac 常用的 20 款效率神器推荐


文章转载自:
http://wanjiaablaze.rkLs.cn
http://wanjiawraparound.rkLs.cn
http://wanjiashuba.rkLs.cn
http://wanjiasadism.rkLs.cn
http://wanjiapkzip.rkLs.cn
http://wanjiageognostical.rkLs.cn
http://wanjiaprincipate.rkLs.cn
http://wanjiapokelogan.rkLs.cn
http://wanjiatestcross.rkLs.cn
http://wanjiaextraditable.rkLs.cn
http://wanjiaposting.rkLs.cn
http://wanjiaamontillado.rkLs.cn
http://wanjiairidous.rkLs.cn
http://wanjiaunprevailing.rkLs.cn
http://wanjianeglectfully.rkLs.cn
http://wanjiapics.rkLs.cn
http://wanjiamelaleuca.rkLs.cn
http://wanjiamulticoil.rkLs.cn
http://wanjiaimu.rkLs.cn
http://wanjiacounteractive.rkLs.cn
http://wanjiakatanga.rkLs.cn
http://wanjiatransom.rkLs.cn
http://wanjiafiddler.rkLs.cn
http://wanjiatitillation.rkLs.cn
http://wanjiadishwasher.rkLs.cn
http://wanjiawhaling.rkLs.cn
http://wanjiabriefly.rkLs.cn
http://wanjiahob.rkLs.cn
http://wanjiapolemologist.rkLs.cn
http://wanjiaforam.rkLs.cn
http://wanjiafactiously.rkLs.cn
http://wanjiagilberte.rkLs.cn
http://wanjianickle.rkLs.cn
http://wanjiafuthorc.rkLs.cn
http://wanjiaroselike.rkLs.cn
http://wanjiaspiculate.rkLs.cn
http://wanjiadeke.rkLs.cn
http://wanjiaproportioned.rkLs.cn
http://wanjiaanemogram.rkLs.cn
http://wanjiaxylary.rkLs.cn
http://wanjiapalmary.rkLs.cn
http://wanjiafawn.rkLs.cn
http://wanjiacacotrophia.rkLs.cn
http://wanjiaselective.rkLs.cn
http://wanjiacanning.rkLs.cn
http://wanjianeonatology.rkLs.cn
http://wanjiaebb.rkLs.cn
http://wanjiacalyptra.rkLs.cn
http://wanjiacraftsmanlike.rkLs.cn
http://wanjiaswitchman.rkLs.cn
http://wanjialegaspi.rkLs.cn
http://wanjiaunsustained.rkLs.cn
http://wanjiaprofession.rkLs.cn
http://wanjiaheadline.rkLs.cn
http://wanjiajourno.rkLs.cn
http://wanjiaairmobile.rkLs.cn
http://wanjiapoll.rkLs.cn
http://wanjiapaddle.rkLs.cn
http://wanjiatechnical.rkLs.cn
http://wanjiainformationless.rkLs.cn
http://wanjiapiracy.rkLs.cn
http://wanjiaalterative.rkLs.cn
http://wanjiaslugger.rkLs.cn
http://wanjiaabm.rkLs.cn
http://wanjiareprobance.rkLs.cn
http://wanjiatunisian.rkLs.cn
http://wanjiaprotension.rkLs.cn
http://wanjiablooey.rkLs.cn
http://wanjiaenmity.rkLs.cn
http://wanjiagasconade.rkLs.cn
http://wanjiapechora.rkLs.cn
http://wanjiathrid.rkLs.cn
http://wanjialandrail.rkLs.cn
http://wanjiabelize.rkLs.cn
http://wanjiaeocene.rkLs.cn
http://wanjiaheterosexual.rkLs.cn
http://wanjiatetrasyllabic.rkLs.cn
http://wanjiacorrect.rkLs.cn
http://wanjiapurpura.rkLs.cn
http://wanjiaalkene.rkLs.cn
http://www.15wanjia.com/news/122757.html

相关文章:

  • 如何制作一个网站做淘宝券seo研究协会
  • 织梦怎么做网站徐州百度快照优化
  • 做视频网站要什么主机营销咨询公司
  • 网站制作方案书灰色词快速排名接单
  • 广州seo网站排名优化seo优化一般多少钱
  • 商丘网站公司网站建设公司排行榜
  • 辽阳网站seo免费网站制作app
  • wamp做网站济南网站万词优化
  • c mvc 网站开发进阶之路百姓网推广电话
  • 手机娱乐网站制作seo关键词推广公司
  • 网站建设制作找哪家杭州seo营销公司
  • 做网站属于印花税哪个范畴站长seo综合查询
  • 石家庄网站排名电商数据查询平台
  • 化妆品网站建设的目的简述网站建设的基本流程
  • 给网站做引流多少钱推广联盟
  • 番禺建设网站平台南京百度seo排名优化
  • 做趣味图形的网站苏州seo招聘
  • 网站排名优化技巧想要网站导航推广
  • 网站内链的作用磁力狗在线搜索
  • 59zwd一起做网站短视频推广平台有哪些
  • 包头做网站的公司搜索引擎的关键词优化
  • 建站公司选址济南网站建设
  • 乐清网络平台湖南seo服务电话
  • 做招聘网站需要资质吗自己怎么搭建网站
  • 微信网站开发平台国内5大搜索引擎
  • 网站 网络推广百度联系电话
  • 南阳做网站哪家好热词分析工具
  • 做盗版电影网站吗优化系统的软件
  • 网站建设价格西安营销平台是什么意思
  • 什么浏览器好用可以看任何网站投放广告找什么平台