This is my dotfiles repository, which is managed by chezmoi.
- MacOS
- Debian-based Linux distributions
- Arch-based Linux distributions
- Other Linux distributions (not fully tested yet)
- Git Configurations, file: ~/.gitconfig
- Neovim as the default editor and Configurations, folder: ~/.config/nvim
- Tmux as the default terminal multiplexer and Configurations, file: ~/.tmux.conf
- Zsh as the default shell and Configurations, file: ~/.zshrc, ~/.p10k.zsh, folder: ~/.zsh
- Install Useful Packages, package list can be found in .chezmoidata/packages.toml
Important
Need to have Administrator privileges to Install Useful Packages.
You can set installUsefulPackages
to false
in the config file to disable this feature.
Tip
You can disable the feature you don't want in the config file by using chezmoi edit-config
command.
-
chezmoi. You can install it by running the following command:
# MacOS brew install chezmoi # Base on Arch Linux sudo pacman -S chezmoi # Using asdf asdf plugin add chezmoi && asdf install chezmoi latest && asdf global chezmoi latest # Or Install binary and put it in your PATH like `/usr/local/bin` sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/local/bin
Get More information about how to install chezmoi from here
Quick Installations:
chezmoi init --apply shdennlin
Or you can install it manually and apply the configurations by following the steps below:
chezmoi init shdennlin
chezmoi edit-config # Edit the config file, set the value you want
chezmoi apply --dry-run # Check the changes, you can skip this step if you want
chezmoi apply
Apply the configurations if you have already installed the configurations or got failed during the installation:
chezmoi apply
chezmoi update
The config file is located at ~/.config/chezmoi/chezmoi.toml
by default, you can edit it by using chezmoi edit-config
command quickly.
My Configurations can be found in the .chezmoi.toml.tmpl, the following is the default value and explanation:
[data]
# Set "true" if you want to apply the configuration
applyGit = true
applyNeovim = true
applyTmux = true
applyZsh = true
# If you want to install useful packages, set "true"
# package list is in {{ .chezmoi.sourceDir }}, you can use `chezmoi cd` to go to the source directory of chezmoi quickly
# and find the list in `.chezmoidata/packages.toml`
installUsefulPackages = true
# If you want only install minimal packages on server (ex: production server/remote server),
# you can set miniPackage to "true"
miniPackages = false
# If you select to apply Git configuration, fill in the following fields
[data.git]
name = ""
username = ""
email = ""
# If you want to use gpg sign, set gpgsign to "true" and set signingkey
gpgsign = "false"
signingkey = ""
If you are using macOS, it will install automatically if you set installUsefulPackages
to true
in the config file. After that, you need to set the font to Hack Nerd Font
in the terminal.
If you are using Linux, you need to install the font manually then set the font to Hack Nerd Font
in the terminal.
You can download the font from here. And get more information about the font here