This repository contains configuration files for various programs that I use:
zsh
(shell): with the lightweight plugin manager Antidote.lite.vim
(text editor): with plugin manager Vim-Plug.tmux
(terminal multiplexer): WARNING: I changed the default prefix toC-a
instead ofC-b
.kitty
(terminal emulator): Documentation.- Neovim
Copy the files to the appropriate locations (e.g., your $HOME
directory). The setup-cli.sh
script can be used to automate this process on Linux (only applicable for some of the configuration files).
Example:
# For zsh on macOS
cp -i ./zshrc.basic.zsh ~/.zshrc.basic.zsh
cp -i ./Darwin/zshrc.zsh ~/.zshrc
cp -i ./Darwin/zshenv.zsh ~/.zshenv
# Open-source mirrors in Mainland China
# * Copy the following file ONLY if you are in Mainland China
cp -i ./.cn.env /.cn.env
# Vim
./install_dependencies.sh # install Vim-Plug
cp -i {.basic.,.plug.,.}vimrc ~/
For zsh auto-completion, create a custom zsh function directory in ~/
:
mkdir -p ~/.zfunc
The generate the auto-completion files, e.g., for rustup
and cargo
:
rustup completions zsh > ~/.zfunc/_rustup
cargo completions zsh > ~/.zfunc/_cargo
Tested on macOS 14 (Ventura) with zsh
version zsh 5.9 (x86_64-apple-darwin23.0)
. Please note that compatibility is not guaranteed for very old versions of macOS, such as macOS versions before 10.13 (High Sierra) with zsh
versions earlier than 5.3
.
Note: setup-cli.sh
currently does nothing on macOS.