Personal set of linux dotfiles / configuration files, handled through chezmoi
- Initial installation :
# Manual installation
cd /home/
sh -c "$(curl -fsLS git.io/chezmoi)"
# OS installation
pacman -S chezmoi
apt-get install -y chezmoi
# Setup (manual) + retrieve online files from github.com/<user>/dotfiles/
sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply SR-G
- Download dotfiles on a new server :
chezmoi init --apply SR-G- Add files :
chezmoi add <filename>
chezmoi add --encrypt <filename>
chezmoi edit <filename>- Init remote URL (after init) :
git remote add origin https://github.com/SR-G/dotfiles- Commit added files :
chezmoi cd
git add . && git commit -m"Updates" && git push origin master
exit- Check, compare, apply :
chezmoi doctor
chezmoi diff
chezmoi -v apply- abcde configuration
- eclipse configuration + plugins ?
- .m2 maven configuration
- geany / notepadqq configuration
- ssh config
- task configuration and aliases
- terminator configuration ?
- micro configuration https://micro-editor.github.io/
- rclone safe configuration
Reminder of manual GIT configuration
export VISUAL=vim
export EDITOR="$VISUAL"
git config --global user.name "SR-G"
git config --global user.email "serge.simon@gmail.com"
# Git cache on file (unencrypted)
git config --global credential.helper store
# Git cache in memory (with 1 year timeout (in seconds))
# git config --global credential.helper 'cache --timeout=31536000'pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si- chezmoi : https://github.com/twpayne/chezmoi
- STOW : https://github.com/aspiers/stow
- yadm :
- dotenv (npm...) : https://github.com/motdotla/dotenv
- dotfilehub : https://github.com/knoebber/dotfile
-
Dotfiles examples :
-
Discussions :
- Comparisons : https://www.chezmoi.io/docs/comparison/
- dotfile : https://www.reddit.com/r/golang/comments/jt9yp7/dotfile_version_control_system_for_single_files/
- using git : https://www.atlassian.com/git/tutorials/dotfiles
- GNU Stow : https://medium.com/@waterkip/managing-my-dotfiles-with-gnu-stow-262d2540a866
- discussion : https://news.ycombinator.com/item?id=11071754