Skip to content

htr3n/zsh-config

Repository files navigation

My ZSH Configurations

The configurations are for my macOS workstation and therefore contain some macOS-specific code and commands.

Quick Start

# get to the home folder
$ cd
# pull the git repos
$ git clone https://github.com/htr3n/zsh-config.git .zsh-config
# then link the startup files
$ zsh ~/.zsh-config/bootstrap.sh

Log out and login again!!!

In case you want to have private setting excluded from public Git repos, just create a file .private.sh in the home folder.

Plugin Management

Instead of manually installing ZSH plugins, I use Zi, which is a continuing work of zplugin, with cool Turbo Mode to accelerate the loading and checking of ZSH plugins. Thus, zi needs to be installed as well.

sh -c "$(curl -fsSL get.zshell.dev)" -- -i skip -b main

Note that zi installation script will automatically add some commands into the end of .zshrc to initialise / load zi. Nonetheless, _init.sh has already the initialisation of zi, thus, we should remove or comment the parts added by zi installation script.

If Zi is set up properly, you can use many handy commands, for instance, updating all or some plugins with zi update , removing a plugin zi delete plugin_name.

Some useful ZSH plugins:

Credits

I developed most of the configuration on my own but nevertheless learned a lot from Oh-my-zsh and Prezto and many other sources for various settings.

License

<3 MIT License.