Thanks to visit codestin.com
Credit goes to github.com

Skip to content

yilinfang/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Personal dotfiles managed with chezmoi.

NOTE: I may occasionally create conflicts in this repository by force pushing or rewriting history. This happens when I accidentally commit some sensitive data.

Usage

Install tools

bash <(curl -fsSL https://raw.githubusercontent.com/yilinfang/dotfiles/refs/heads/main/scripts/install.sh)

Install dotfiles

# Remove existing chezmoi config
rm -rf ~/.config/chezmoi
# Remove existing chezmoi data
rm -rf ~/.local/share/chezmoi
rm -rf ~/.chezmoi/dotfiles
# Install dotfiles
chezmoi init --apply https://github.com/yilinfang/dotfiles.git -S ~/.chezmoi/dotfiles
# Setup shell
chezmoi cd
bash scripts/pde/setup-shell.sh

Install via mise

# Install mise if you don't have it
curl https://mise.run | sh
# Remove existing chezmoi config
rm -rf ~/.config/chezmoi
# Remove existing chezmoi data
rm -rf ~/.local/share/chezmoi
rm -rf ~/.chezmoi/dotfiles
# Install dotfiles
mise exec age chezmoi -- chezmoi init --apply https://github.com/yilinfang/dotfiles.git -S ~/.chezmoi/dotfiles
# Setup shell
mise exec chezmoi -- chezmoi cd
bash scripts/pde/setup-shell.sh

Install via make (recommended)

# Remove existing chezmoi config
rm -rf ~/.config/chezmoi
# Remove existing chezmoi data
rm -rf ~/.local/share/chezmoi
rm -rf ~/.chezmoi/dotfiles
# Download dotfiles via git
git clone https://github.com/yilinfang/dotfiles.git ~/.chezmoi/dotfiles
# Install dotfiles
cd ~/.chezmoi/dotfiles
make install

Quick install (minimal dotfiles)

Install only essential config files (.vimrc, .tmux.conf) directly to your home directory.

bash <(curl -fsSL https://raw.githubusercontent.com/yilinfang/dotfiles/refs/heads/main/scripts/install_quick.sh)

NOTE: Existing files will be backed up with a .backup_YYYYMMDD_HHMMSS suffix.

About

Useful files that make life easier.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors