# zinit-dotfiles **Repository Path**: aron0524/zinit-dotfiles ## Basic Information - **Project Name**: zinit-dotfiles - **Description**: 使用zinit管理的zsh配置文件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-05-19 - **Last Updated**: 2023-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dotfiles 嘗試用 [dotbot](https://github.com/anishathalye/dotbot) ## 使用方法 ```bash ./init.sh # 忽略报错, 这是把已有文件复制到 temp 文件,避免重要数据丢失 ./install ``` 你需要先安装 `unzip` 用于解压 zip。使用包管理器安装即可 提供 zinit 安装部分软件包的方法(默认已经复制) 将 `zinit_b.zsh` 复制到内 `~/.config/zsh/zinit.zsh` ```bash sed -i "/##program/ r zinit_b.zsh" ~/.config/zsh/zinit.zsh ``` 做完这些就可切换到 `zsh`, 然后等待下载完成 ## 把 oh-my-zsh 转到 zinit 如果是 omz 自带的插件 ```bash plugin ( git sudo ) ``` 写成([zinit.zsh](./zsh/zinit.zsh)) ```bash zinit wait"1" light-mode lucid for \ OMZP::git \ OMZP::sudo # \ 是换行写,只是为了好看 # 最后一行不要加 \ ``` 如果不是 omz 自带的插件就写成 `github用户名/github仓库名` ```bash zinit wait"1" lucid depth"1" light-mode for \ arzzen/calc.plugin.zsh \ torifat/npms \ brymck/print-alias \ djui/alias-tips \ wfxr/forgit \ Bhupesh-V/ugit ``` 自带皮肤是使用 OMZT::xxx 的方式,不支持 random ## ZSH 为避免不必要的困扰,请至少阅读 `aliases.zsh` 和 `env.zsh` 中的配置 - `zsh` 插件管理 [Zinit](https://github.com/zdharma-continuum/zinit) - `ls` 别名:安装 [exa](https://github.com/ogham/exa) - `vim` 别名:安装 [neovim](https://github.com/neovim/neovim) ### [zoxide](https://github.com/ajeetdsouza/zoxide) 使用命令 `j` 和 `ji` 快速跳转到指定目录 ## 插件说明 部分插件可能并没在 `zinit.zsh` 中使用,如果想要使用,请自行安装 - [romkatv/zsh-defer](https://github.com/romkatv/zsh-defer) - 延迟加载插件 - [zsh-users/zsh-completions](https://github.com/zsh-users/zsh-completions) - 完整补全插件 - [junegunn/fzf](https://github.com/junegunn/fzf) - fzf 插件 - [arzzen/calc.plugin.zsh](https://github.com/arzzen/calc.plugin.zsh) - 计算器插件, 输入 `= 2 * 100` 试试 - [torifat/npms](https://github.com/torifat/npms) - 使用 fzf 显示所有 npm 脚本 - [brymck/print-alias](https://github.com/brymck/print-alias) - 使用 alias 时打印原始命令 - [djui/alias-tips](https://github.com/djui/alias-tips) - 提示可以使用的 alias - [wfxr/forgit](https://github.com/wfxr/forgit) - fzf for git ,使用的别名,还是看 github 吧 - [Bhupesh-V/ugit](https://github.com/Bhupesh-V/ugit) - 撤回 git 命令(fzf) 使用 `ugit` 试试 - [bigH/git-fuzzy](https://github.com/bigH/git-fuzzy) - git 模糊搜索 (fzf),把 `git xxx` 改成 `git fuzzy xxx` 试试吧 - [lukechilds/zsh-nvm](https://github.com/lukechilds/zsh-nvm) - nvm 插件 - [Aloxaf/fzf-tab](https://github.com/Aloxaf/fzf-tab) - fzf 替代 tab - [zsh-users/zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) - 自动补全插件 - [zdharma-continuum/fast-syntax-highlighting](https://github.com/zdharma-continuum/fast-syntax-highlighting) - 快速高亮插件 - [romkatv/powerlevel10k](https://github.com/romkatv/powerlevel10k) - powerlevel10k 主题 `p10k configure` 可以配置主题。字体显示可以安装 fonts 目录下的 MesloLGS NF 字体 ## OMZ 插件 - [git](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git) - git 别名插件 - [sudo](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/sudo) - exit 插入 sudo 命令 ## fzf 最直接的,你 Ctrl+R 试试搜索历史记录