自己 linux、macos 的配置文件(.zshrc、.vimrc 等等)
-
zsh/oh-my-zsh
-
zsh 和 oh-my-zsh 安装参照网上教程
-
复制 zsh/.zshrc 到 ~/
-
安装
zsh-syntax-highlighting
和zsh-autosuggestions
:执行
git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
安装zsh-syntax-highlighting
执行
git clone https://gitee.com/phpxxo/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
安装zsh-autosuggestions
-
主题
- 自制主题(zsh/my.zsh-theme)放在~/.oh-my-zsh/custom/themes 或者~/.oh-my-zsh/themes 都行
- 推荐主题 romkatv/powerlevel10k: A Zsh theme (github.com)
-
最后
source ~/.zshrc
-
-
vim
-
下载.vimrc 和.vim 放在~里,github 搜索安装
vim-plug
-
onedark 主题配置:autoload/onedark.vim 放在~/.vim/autoload 里,colors/onedark.vim 放在~/.vim/colors 里
-
插件安装:在.vim 里用
:PlugInstall
-
-
neovim
-
安装 apt / brew / scoop 等等包管理器直接可以安装,详细参考官网(Home - Neovim)
-
将 nvim 复制到~/.config/里
-
插件安装:
- neovim ~/.config/nvim/lua/plugins/plugins-setup.lua
- normal 模式下:w 就可以自动安装配置的插件 || :Lazy 呼出 Lazy 管理界面
-
安装~/.config/nvim/lua/plugins/conform.lua 里用到的 formatters
-
-
tmux
- 用包管理器安装tmux
- 复制 tmux/.tmux.conf 到 ~/
- 运行:
- 执行 tmux 命令
-
- 执行 Ctrl+B :source-file ~/.tmux.conf
- 或者 直接在tmux的终端里执行 tmux source-file ~/.tmux.conf