惯用 linux 的工具和其对应的 github 仓库
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"- 克隆此仓库到
$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- 将插件添加到 Oh My Zsh 的插件列表中以便加载(在
~/.zshrc中):
plugins=(
# other plugins...
zsh-autosuggestions
)
- 克隆此仓库并引入脚本:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting- 添加以下行以自动启用语法高亮功能:
echo "source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-~}/.zshrc- 在当前的交互式 shell 中启用语法高亮:
source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh- 下载主题文件
curl -fLo ~/.vim/colors/monokai.vim --create-dirs https://raw.githubusercontent.com/ku1ik/vim-monokai/refs/heads/master/colors/monokai.vim- 添加以下行以自动启用 monokai 主题:
echo -e "\nsyntax enable\ncolorscheme monokai" >> ~/.vimrcecho -e "set tabstop=4\nset shiftwidth=4\nset expandtab" >> ~/.vimrcbash <(curl -sSL https://linuxmirrors.cn/main.sh)bash <(curl -sSL https://linuxmirrors.cn/docker.sh)国内
bash <(curl -sSL https://gitee.com/xjxjin/scripts/raw/main/check_docker_registry.sh)curl -sSL https://gitee.com/xjxjin/scripts/raw/main/check_docker_registry.sh | sudo bash境外
bash <(curl -sSL https://github.com/xjxjin/scripts/raw/main/check_docker_registry.sh)npm install -g doctocdoctoc xxx.md