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

Iterm2配置主题和Oh-My-Zsh

文章目录

    • 一、配置主题
      • 1.1 安装使用git
      • 1.2 安装手册
        • 1.2.1 激活使用主题
    • 二、配置oh-my-zsh
      • 2.1、oh-my-zsh插件
      • 2.2、oh-my-zsh主题 [Zsh](http://zsh.org/)
        • 2.2.1、Install using Git
        • 2.2.2、Install manually
        • 2.2.3、Activating theme
        • 2.2.4、Install using [zplug](https://github.com/zplug/zplug)

在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.


http://www.kler.cn/news/332108.html

相关文章:

  • 螺蛳壳里做道场:老破机搭建的私人数据中心---Centos下docker学习02(yum源切换及docker安装配置)
  • 动手测试:CPU的L1~L3级缓存和内存的读取速度测试
  • 深入理解.NET中的委托与事件:实现灵活的事件驱动编程
  • vue3学习:axios输入城市名称查询该城市天气
  • 虚拟机添加共享文件夹后仍无法显示文件
  • vscode报错No module named ‘Crypto‘
  • 排序算法——快速排序:普通快排与双路快排
  • 春意盎然:Spring Boot驱动的“衣依”服装销售平台
  • React Fiber 详解
  • ASP.Net Core 获取微信小程序 OpenId 验证
  • 平面电磁波的电场能量磁场能量密度相等,能量密度的体积分等于能量,注意电场能量公式也没有复数形式(和坡印廷类似)
  • 如何修复变砖的手机并恢复丢失的数据
  • 【SQL】重复的邮箱信息
  • 银河麒麟操作系统设置网卡混杂模式的方法
  • 解决磁盘负载不均——ElasticSearch 分片分配和路由设置
  • [CSP-J 2022] 逻辑表达式
  • Word导出样式模板,应用到其他所有word
  • 02:(寄存器开发)流水灯/按键控制LED
  • Web安全 - 安全防御工具和体系构建
  • 科普文:什么是Gemini,关于谷歌新的人工智能模型,你应该知道的一切