自己 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)
- starship 现在在用
-
最后
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
- 包管理器直接可以安装(需要v0.10.0以上),详细参考官网(Home - Neovim)
- 将 nvim 复制到~/.config/里
- 安装依赖,执行install_dep.sh
- 插件管理: lazy.nvim (:Lazy)
-
tmux
- 用包管理器安装tmux
- 复制 tmux/.tmux.conf 到 ~/
- 运行:
- 执行 tmux 命令
-
- 执行 Ctrl+B :source-file ~/.tmux.conf
- 或者 直接在tmux的终端里执行 tmux source-file ~/.tmux.conf