This is my rather extensive ZSH configuration.
-
Fork this repository, then clone it to your laptop:
$ git clone [email protected]:otype/shell.git ~/.shell
-
Symlink ZSH configuration files:
$ ln -nsf ~/.shell/zshenv ~/.zshenv $ ln -nsf ~/.shell/zshrc ~/.zshrc $ ln -nsf ~/.shell/zsh/ ~/.zsh $ ln -nsf ~/.shell/zprofile ~/.zprofile
-
Modify zshrc and update oh-my-zsh location and theme.
-
Enable the configuration files you need:
For example, if you want to enable the homebrew config
~/.zsh/env-available/zshenv-brew
:$ cd ~/.zsh/env-enabled $ ln -nsf ../env-available/zshenv-brew
That's it! Repeat this for any other configuration and restart your terminal session.
Note: Make sure to check each configuration for sanity and correct paths!