自己 linux、macos 的配置文件(.zshrc、.vimrc 等等)
-
zsh/oh-my-zsh
-
安装oh-my-zsh:参照官方github文档,将它安装在$HOME/.oh-my-zsh
-
复制 zsh/.zshrc 到 ~/
-
安装
zsh-syntax-highlighting
:执行git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-
安装
zsh-autosuggestions
:执行git clone https://gitee.com/phpxxo/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/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
- 下载.vimrc 和.vim 放在~里,github 搜索安装
-
neovim
- 安装 apt / brew / scoop 等等包管理器直接可以安装,详细参考官网(Home - Neovim)
- 将 nvim 复制到~/.config/里
- 插件安装:
- neovim ~/.config/nvim/lua/plugins/plugins-setup.lua
- normal 模式下:w 就可以自动安装配置的插件 || :Lazy 呼出 Lazy 管理界面
- 手动用rustup安装 rustfmt 不能由mason自动安装,用不了 (rustup component add rustfmt)
-
tmux
- 用包管理器安装tmux
- 复制 tmux/.tmux.conf 到 ~/
- 运行:
- 执行 tmux 命令
-
- 执行 Ctrl+B :source-file ~/.tmux.conf
- 或者 直接在tmux的终端里执行 tmux source-file ~/.tmux.conf