Serenader

Learning by sharing

终端设置

下载链接:https://iterm2.com/
设置样式:
Preferences → Appearance → General → Theme → Minimal
设置 status bar:
Preferences → Profiles → Sessions → Status bar enable → Configure Status bar
设置 status bar 位置:
Preferences → Appearance → Status bar location → Bottom
设置 color scheme:
下载配置文件:https://draculatheme.com/iterm/
Preferences → Profiles → Colors → Color Presets → Import → 选择下载的文件
Preferences → Profiles → Colors → Color Presets → Dracula
设置字体:
Preferences → Profiles → Text → Font → Fira Code Retina → Use ligatures
设置新开窗口大小:
Preferences → Profiles → Window → Settings for New Windows → Columns: 120 → Rows: 30
安装 zsh、oh my zsh:
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
下载 zsh-autosuggestions :
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
下载 zsh-syntax-highlighting:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
设置主题和插件:
编辑 `~/.zshrc` 文件,设置:
ZSH_THEME="spaceship"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)