工欲善其事
Feb 8, 2019 13:00 · 348 words · 1 minute read
1. homebrew
Homebrew 是一款 macOS 平台下的软件包管理工具(2.0.0版本以后同时支持 Linux),拥有安装、卸载、更新、查看、搜索等很多实用的功能。
安装 homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
卸载 homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
2. vimrc
通过编写 .vimrc 文件可以随心所欲地定制自己想要的 Vim 编辑器。
基础版
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_basic_vimrc.sh
终极版
终极版包含了很多好用的插件、配置和配色方案。
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
3. oh-my-zsh
Oh My Zsh 是一个开源的、社区驱动的管理 zsh 配置的框架,包含了超过200款可选插件以及140余款主题。
wget
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
curl
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
主题
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
插件
https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins
4. zsh-autosuggestions
类 Fish 的自动联想 zsh 插件。
手动安装
-
克隆此 git 仓库至
$ZSH_CUSTOM/plugins
(默认为~/.oh-my-zsh/custom/plugins
)git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
-
添加至插件列表
plugins=( zsh-autosuggestions )
通过 homebrew 安装
brew install zsh-autosuggestions
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
5. docker-completion
Docker 命令自动联想工具。
通过 homebrew 安装
brew install bash-completion
Zsh
添加至插件列表
plugins=(
docker
)