https://github.com/qwreey/zsh
my zsh dotfiles
https://github.com/qwreey/zsh
Last synced: 12 months ago
JSON representation
my zsh dotfiles
- Host: GitHub
- URL: https://github.com/qwreey/zsh
- Owner: qwreey
- Created: 2023-06-04T23:55:52.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T14:22:55.000Z (over 1 year ago)
- Last Synced: 2024-10-21T23:46:14.558Z (over 1 year ago)
- Language: Shell
- Size: 177 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Performance focused zsh setup
This is my hyper fast oh-my-zsh, cross platform setup
It use zsh-defer to load slow configurations, such as nvm.
nvm was customized by [fnvm](https://github.com/qwreey75/fnvm), which makes nvm much faster. (it was made for cygwin, but can compatible with *nix)
Also, i used zcompile, which compiles zsh file to make performance better
oh-my-zsh was customized(disable autoupdate, such more) for performance. (it was nested in rc file)
# Install
execute install script
```
curl --proto '=https' --tlsv1.2 -sSf "https://raw.githubusercontent.com/qwreey/zsh/master/install.zsh" | ZSHDIR="$HOME/.zsh" ZSHRUSTUP="true" ZSHPYENV="true" ZSHNVM="true" ZSHFNVM="true" zsh && exec zsh
```
to clone omz, nvm, defer, fnvm and powerlevel10k into new .zsh (it will not overwrite your ohmyzsh, if you have ohmyzsh already, you can remove it)
This script will update call `nvm use node` to initialize nodejs, and compile all zsh file to speed up your zsh
# Config
You can add your configuration into $HOME/.zsh/user-before.zsh
user-before.zsh will loaded before zsh loaded. so you can set omz plugins by
```
plugins=( git copyfile copypath )
```
$HOME/.zsh/user-after.zsh will loaded after omz loaded
and $HOME/.zsh/user-lazy.zsh will loaded by zsh-defer
$HOME/.zsh/user-p10k.zsh will loaded for p10k if exist
If you want to configure p10k. type `p10k configure`
# Toolkit integration
This zsh configuration integrates the toolkit below. rustc, pyenv, nvm