zsh設定
===
[Kamigami55/dotfiles: My unix config files](https://github.com/Kamigami55/dotfiles)
現在:
git submodule要自己init、update
```
git submodule init
git submodule update
```
vim vundle要自己下PluginInstall
```
vim
:PluginInstall
```
tmux要手動安裝
```
<prefix> + <I>
```
要手動切換到zsh
```
chsh -s /usr/bin/zsh
```
## 安裝zsh
MacOS有內建
切換shell:
```
chsh -s /bin/zsh
```
## 安裝zsh套件管理工具Antigen、並用來安裝oh-my-zsh
[zsh-users/antigen: The plugin manager for zsh.](https://github.com/zsh-users/antigen)
```
curl -L git.io/antigen > antigen.zsh
```
.zshrc改為
```
source $HOME/unix-settings/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle heroku
antigen bundle pip
antigen bundle lein
antigen bundle command-not-found
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# Load the theme.
antigen theme robbyrussell
# Tell Antigen that you're done.
antigen apply
```
## oh-my-zsh常用插件
[Plugins Overview · robbyrussell/oh-my-zsh Wiki](https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview)
## 優化介面
### 安裝powerline字體
https://github.com/powerline/fonts
安裝powerline字體
```
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
```
然後切換終端機字體,我使用 DejaVu Sans Mono for Powerline
### 安裝提示字元theme:alien
[eendroroy/alien: An asynchronous zsh prompt](https://github.com/eendroroy/alien)
.zshrc裡加入下面這行
```
antigen theme eendroroy/alien alien
```
[sindresorhus/pure: Pretty, minimal and fast ZSH prompt](https://github.com/sindresorhus/pure#getting-started)
[caiogondim/bullet-train.zsh: An oh-my-zsh shell theme based on the Powerline Vim plugin](https://github.com/caiogondim/bullet-train.zsh)
[Dracula — A dark theme for Atom, Alfred, Brackets, Emacs, iTerm, Mintty, Notepad++, Slack, Sequel Pro, Sublime Text, Telegram, Textmate, Terminal.app, Ulysses, Vim, Visual Studio Code, Wox, Xcode, and Zsh](https://draculatheme.com/)
[浅谈Linux开发环境无缝迁移 - 公子世无双,陌上人如玉](https://samrayleung.github.io/blog/2017/06/22/%E6%B5%85%E8%B0%88linux%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%97%A0%E7%BC%9D%E8%BF%81%E7%A7%BB/)
[samrayleung/Oh-my-unix: A shell script to install awesome command for *nix platform and set them up](https://github.com/samrayleung/Oh-my-unix)
[unixorn/awesome-zsh-plugins: A collection of ZSH frameworks, plugins & themes inspired by the various awesome list collections out there.](https://github.com/unixorn/awesome-zsh-plugins)
[paulirish/dotfiles: paul's shell, git, etc config files. also homebrew, migration setup. good stuff.](https://github.com/paulirish/dotfiles)
[mathiasbynens/dotfiles: .files, including ~/.macos — sensible hacker defaults for macOS](https://github.com/mathiasbynens/dotfiles)