終端使用指南(Terminal usageguide)
蘋果終端
Homebrew
名稱 | 地址 |
---|---|
官方網(wǎng)站 | https://brew.sh/ |
國內鏡像網(wǎng)站(推薦) | https://gitee.com/cunkai/HomebrewCN |
官方安裝
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
國內鏡像安裝
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
zsh
名稱 | 地址 |
---|---|
官方網(wǎng)站 | https://github.com/zsh-users/zsh |
安裝程序
brew install zsh
設置為默認終端
chsh -s /bin/zsh
oh-my-zsh
名稱 | 地址 |
---|---|
官方網(wǎng)站 | https://ohmyz.sh/ |
國內鏡像網(wǎng)站(推薦) | https://gitee.com/pocmon/ohmyzsh |
官方安裝
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
國內鏡像安裝
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
語法高亮插件
名稱 | 地址 |
---|---|
語法高亮插件官方網(wǎng)站 | https://github.com/zsh-users/zsh-syntax-highlighting |
安裝插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
激活插件
打開文件
nano /User/dabolau/.zshrc
修改
plugins=()
為
plugins=(zsh-syntax-highlighting)
重新啟動終端
自動補全插件
名稱 | 地址 |
---|---|
自動補全插件官方網(wǎng)站 | https://github.com/zsh-users/zsh-autosuggestions |
安裝插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
激活插件
打開文件
nano /User/dabolau/.zshrc
修改
plugins=()
為
plugins=(zsh-syntax-highlighting zsh-autosuggestions)
重新啟動終端
目錄跳轉插件
名稱 | 地址 |
---|---|
目錄跳轉插件官方網(wǎng)站 | https://github.com/wting/autojump |
安裝插件
brew install autojump
激活插件
打開文件
nano /User/dabolau/.zshrc
修改
plugins=()
為
plugins=(zsh-syntax-highlighting zsh-autosuggestions autojump)
重新啟動終端
烏班圖終端
zsh
安裝程序
sudo apt install zsh
設置為默認終端
chsh -s /bin/zsh
oh-my-zsh
名稱 | 地址 |
---|---|
官方網(wǎng)站 | https://ohmyz.sh/ |
國內鏡像網(wǎng)站(推薦) | https://gitee.com/pocmon/ohmyzsh |
官方安裝
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
國內鏡像安裝
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
語法高亮插件
名稱 | 地址 |
---|---|
語法高亮插件官方網(wǎng)站 | https://github.com/zsh-users/zsh-syntax-highlighting |
安裝插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
激活插件
打開文件
sudo nano /home/dabolau/.zshrc
修改
plugins=()
為
plugins=(zsh-syntax-highlighting)
重新啟動終端
自動補全插件
名稱 | 地址 |
---|---|
自動補全插件官方網(wǎng)站 | https://github.com/zsh-users/zsh-autosuggestions |
安裝插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
激活插件
打開文件
sudo nano /home/dabolau/.zshrc
修改
plugins=()
為
plugins=(zsh-syntax-highlighting zsh-autosuggestions)
重新啟動終端
目錄跳轉插件
名稱 | 地址 |
---|---|
目錄跳轉插件官方網(wǎng)站 | https://github.com/wting/autojump |
安裝插件
sudo apt install autojump
激活插件
打開文件
sudo nano /home/dabolau/.zshrc
修改
plugins=()
為
plugins=(zsh-syntax-highlighting zsh-autosuggestions autojump)
重新啟動終端