Skip to content

惯用linux的工具和其对应的github仓库

Notifications You must be signed in to change notification settings

banned2054/My-Linux-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

惯用 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

Vim

  • 下载主题文件
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" >> ~/.vimrc

设置制表符宽度

echo -e "set tabstop=4\nset shiftwidth=4\nset expandtab" >> ~/.vimrc

更新源

bash <(curl -sSL https://linuxmirrors.cn/main.sh)

安装Docker

bash <(curl -sSL https://linuxmirrors.cn/docker.sh)

Docker

更换源

国内

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)

Markdown

安装目录生成工具

npm install -g doctoc

生成目录

doctoc xxx.md

About

惯用linux的工具和其对应的github仓库

Resources

Stars

Watchers

Forks