Iterm2配置主题和Oh-My-Zsh


在mac上,一直实用的是iterm2,简单记录一下配置新的iterm2的一个过程,主要是dracula的主题和Oh-my-zsh的bash环境。

一、配置主题

进到dracula的官方网站,往下滑就可以看到具体的一个安装步骤。

1.1 安装使用git

If you are a git user, you can install the theme and keep up to date by cloning the repo:

如果你是一个git用户,你可以安装主题并通过clone repo来保持更新

git clone https://github.com/dracula/iterm.git

1.2 安装手册

Download using the GitHub.zipdownload option and unzip them.

通过github下载zip的文件,然后解压它

1.2.1 激活使用主题

启用主题

  1. iTerm2 > Preferences > Profiles > Colors Tab; // 配置的路径
  2. Open the Color Presets… drop-down in the bottom right corner; // 打开Color Presets 然后往下滑
  3. Select Import… from the list; // 选择导入
  4. Select the Dracula.itermcolors file; // 然后选择刚才下载下来的文件中的Dracula.itermcolors文件
  5. Select the Dracula from Color Presets…. 💜。// 然后选择Dracula

二、配置oh-my-zsh

Oh-my-zsh官网

还是去到官网,点击install oh-my-zsh, 就会看到下面的命令, 随便执行一个就行。

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

2.1、oh-my-zsh插件

  • autojump

  • Zsh-syntax-highlighting

    • cd ~/.oh-my-zsh/custom/plugins/
      git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
      vi ~/.zshrc
      
    • 确保zsh-syntax-highlighting是最后一个

    • plugins=(
      	git
      	zsh-syntax-highlighting
      )
      
    • source

  • git

  • Zsh-autosuggestions

    • cd ~/.oh-my-zsh/custom/plugins/
      git clone https://github.com/zsh-users/zsh-autosuggestions
      vi ~/.zshrc
      
    • plugins=(
      	git
      	zsh-syntax-highlighting
      	zsh-autosuggestions
      )
      
  • extract

  • Colored-man-pages

  • cp

  • Zsh-completions

2.2、oh-my-zsh主题 Zsh

dracula zsh

2.2.1、Install using Git

If you are a git user, you can install the theme and keep up to date by cloning the repo:

git clone https://github.com/dracula/zsh.git

And creating a symbolic link to oh-my-zsh’s theme folder:

ln -s $DRACULA_THEME/dracula.zsh-theme $OH_MY_ZSH/themes/dracula.zsh-theme

P.S.: Remember that you should replace $DRACULA_THEME and $OH_MY_ZSH with the actual directories for this command to work.

2.2.2、Install manually
  1. Download using the GitHub .zip download option and unzip them.
  2. Move dracula.zsh-theme file to oh-my-zsh’s theme folder: oh-my-zsh/themes/dracula.zsh-theme.
  3. Move /lib to oh-my-zsh’s theme folder: oh-my-zsh/themes/lib.
2.2.3、Activating theme

Go to your ~/.zshrc file and set ZSH_THEME="dracula".

2.2.4、Install using zplug

Just add zplug "dracula/zsh", as:theme to your ~/.zshrc file.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值