Dotfiles for zsh configuration. Simple (no frameworks) and portable (plugins are git submodules, and contents symlinked to the home directory).
Reference: https://thevaluable.dev/zsh-install-configure-mouseless/
-
Install zsh (no need if on macOS):
sudo apt install zsh
-
Install
rcm
to symlink files in this directory to your home directory. You may also need to installbrew
first.# You may need to run this first in your terminal session to use brew: eval $(/opt/homebrew/bin/brew shellenv) brew install rcm
-
Pull into your home directory (
~
):cd ~ && git clone https://github.com/alecmarcus/zsh.git
-
Install plugin submodules:
git submodule update --init --remote --recursive
-
(Optional) do a dry-run to see what is going to get symlinked:
# env RCRC=... uses the rcrc file in this dir as the config. It will later get symlinked to ~/.rcrc, which rcm looks for the file by default. env RCRC=$HOME/zsh/rcrc lsrc
-
If the output matches the contents of this directory, go ahead and run the command that will symlink the dotfiles in it to your home directory:
# -v adds verbose logging env RCRC=$HOME/zsh/rcrc rcup -v
- If you make changes to
zsh/rcrc
and want to update the links again after, you have to run the above command. Otherwise, if you only updated other files in the zsh directory, you can simply run:Which will use the linkedrcup -v
~/.rcrc
file created the first time you ranrcup
.
- If you make changes to
-
brew install fzf
-
Run zsh:
zsh
-
Set the default shell to zsh:
chsh -s $(which zsh)
To update each submodule to the latest revision after initializing, run:
git submodule update --recursive --remote
This is also available via the alias:
gsu