v3.8.313
263 字
1 分钟
Shell环境调优
本文主要适用于美化自定义 Shell 环境
BASH 根据第三方工具环境优化
切换环境变量
bash bash-completion curl git # 安装工具组件 echo $SHELL # 查看当前使用的命令行环境 cat /etc/shells # 查看当前已安装的环境 chsh -s /bin/bash # 切换环境安装 ohmysh
git clone <https://github.com/ohmysh/ohmysh.git> && cd ohmysh/ bash install.sh source .bashrc切换主题与插件
oms -t list oms -t brainy oms -p list oms -p enable <plugin> oms -p disable <plugin> oms -p restart <plugin>ZSH 根据第三方工具环境优化
切换环境变量
zsh zsh-completions # 安装工具组件 echo $SHELL # 查看当前使用的命令行环境 cat /etc/shells # 查看当前已安装的环境 chsh -s /bin/zsh # 切换环境安装 ohmyzsh
wget <https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh> sh install.sh切换主题与插件
cd ~/.oh-my-zsh/themes yay -S bc wget <https://github.com/bashelled/shini/raw/master/shini.zsh-theme> wget <https://github.com/dersam/staples/raw/master/staples.zsh-theme> wget <https://raw.githubusercontent.com/ChesterYue/ohmyzsh-theme-passion/master/passion.zsh-theme> cd ~/.oh-my-zsh/plugins git clone <https://github.com/zsh-users/zsh-completions.git> git clone <https://github.com/zsh-users/zsh-syntax-highlighting.git> git clone <https://github.com/zsh-users/zsh-autosuggestions>部署配置
pacman -S fzf cd ~/ vim .zshrc source .zshrc主题介绍: wiki
插件介绍: Highlight
插件介绍: Autocomplete
ccat 安装
wget <https://github.com/jingweno/ccat/releases/download/v1.1.0/linux-amd64-1.1.0.tar.gz> tar xfz linux-amd64-1.1.0.tar.gz sudo cp linux-amd64-1.1.0/ccat /usr/local/bin/ sudo chmod +x /usr/local/bin/ccat