Loading... # Mac Install Iterm2 ## Themes > Preferences -> Profiles -> Import > Dracula Theme: https://draculatheme.com/iterm > Themes: https://github.com/mbadolato/iTerm2-Color-Schemes ![iterm-theme-import](https://gz-blog-storage-1252787757.cos.ap-guangzhou.myqcloud.com/usr/uploads/2024/05/17162855738214.jpg) ## Font > Preferences > Profiles > Text > Change Font ```bash # install nerd font bash > brew tap caskroom/fonts bash > brew cask install font-sourcecodepro-nerd-font ``` ## Install zsh > githuh: https://github.com/robbyrussell/oh-my-zsh > oh my zsh themes : https://github.com/robbyrussell/oh-my-zsh/wiki/Themes > Powerlevel9k: https://github.com/bhilburn/powerlevel9k ```bash bash > brew install zsh bash > sudo sh -c "echo $(which zsh) >> /etc/shells" bash > chsh -s $(which zsh) # oh my zsh bash > sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # oh my zsh theme, thems link bash > git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k # config bash > vi ~/.zshrc ############################## ZSH_THEME="powerlevel9k/powerlevel9k" POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir dir_writable vcs) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs time) DEFAULT_USER="mac" POWERLEVEL9K_MODE='nerdfont-complete' ####################################### ``` ## Plugin ```shell plugins=( git extract # 一个命令 `x` 解压全部压缩文件 z # cd的加强版,到达任意到过的位置,模糊匹配 rand-quote # 随机名言,命令quote gitignore # 提供一条 gi 命令,用来查询 gitignore 模板 gi python > .gitignore cp # 提供一个 cpv 命令,这个命令使用 rsync 实现带进度条的复制功能 vi-mode # vim输入模式 safe-paste # 往 zsh 粘贴脚本时,它不会被立刻运行 colored-man-pages # 给你带颜色的 man 命令 zsh-syntax-highlighting # 指令高亮 zsh-autosuggestions # 命令自动提示,方向键补全 ) ``` ## Setting Sample ![beautify](https://gz-blog-storage-1252787757.cos.ap-guangzhou.myqcloud.com/usr/uploads/2024/05/17162855738232.jpg) ![beautify](https://gz-blog-storage-1252787757.cos.ap-guangzhou.myqcloud.com/usr/uploads/2024/05/17162855738271.jpg) © Reprint prohibited Support Appreciate the author AliPayWeChat Like If you think my article is useful to you, please feel free to appreciate