zsh設定

Kamigami55/dotfiles: My unix config files

現在:

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.

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

優化介面

安裝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

.zshrc裡加入下面這行

antigen theme eendroroy/alien alien

sindresorhus/pure: Pretty, minimal and fast ZSH prompt

caiogondim/bullet-train.zsh: An oh-my-zsh shell theme based on the Powerline Vim plugin

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

浅谈Linux开发环境无缝迁移 - 公子世无双,陌上人如玉

samrayleung/Oh-my-unix: A shell script to install awesome command for *nix platform and set them up

unixorn/awesome-zsh-plugins: A collection of ZSH frameworks, plugins & themes inspired by the various awesome list collections out there.

paulirish/dotfiles: paul's shell, git, etc config files. also homebrew, migration setup. good stuff.

mathiasbynens/dotfiles: .files, including ~/.macos — sensible hacker defaults for macOS