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

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=(gitzsh-syntax-highlighting
      )
      
    • source

  • git

  • Zsh-autosuggestions

    • cd ~/.oh-my-zsh/custom/plugins/
      git clone https://github.com/zsh-users/zsh-autosuggestions
      vi ~/.zshrc
      
    • plugins=(gitzsh-syntax-highlightingzsh-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.mrgr.cn/news/37968.html

相关文章:

  • 【2米/8米光学卫星】
  • OMRON欧姆龙E5GN温控器手测
  • Rust 语言开发 ESP32C3 并在 Wokwi 电子模拟器上运行(esp-hal 非标准库、LCD1602、I2C)
  • Pandas常用数据总览,样本抽检函数
  • 【1米C-SAR卫星】
  • 《C++开源贡献:提升职业竞争力的新途径》
  • 论文阅读 | HiDDeN网络架构
  • Springboot综合练习
  • MySQL知识点复习 - 常用的日志类型
  • AI绘画相似风格的作品
  • 【python进阶攻略6】装饰器2
  • c++开发之编译curl(windows版本)
  • matlab r2024a、matlab R2024b保姆级安装教程
  • 在Ubuntu中自动挂载SMB/CIFS共享
  • SpringBoot集成AI:接入大模型框架 LangChain4j 详细教程
  • 基于微信小程序的旅游助手的设计与实现(源码+定制+文档讲解)
  • 每日一题学习笔记
  • 职业技能大赛-单元测试笔记(参数化)分享
  • 828华为云征文|华为云Flexus云服务器X实例之openEuler系统下玩转iSulad容器技术
  • Windows下安装 LLama-Factory 保姆级教程