My dotfiles are deployed by dotinit.
You can mirror my setup with sh -c "$(curl -fsSL git.io/pixinit)".
But before you do so, let me give you a tour of my ~.
I like to keep my ~ clean. So whatever can go in $XDG_CONFIG_HOME is in $XDG_CONFIG_HOME.
~/.gitconfigmoved to~/.config/git/config.~/.tmux.confmoved to~/.config/tmux/tmux.conf.~/.xinitrcmade to live in~/.config/x11/xinitrcwith$XINITRCvariable.- NOTE:
startxdoes not respect this variable. Specify filename as an argument tostartxlikestartx ~/.config/x11/xinitrc.
- NOTE:
~/.Xresourcesmoved to~/.config/x11/Xresources.- NOTE: Like above, you need to specify filename as an argument to
xrdblikexrdb ~/.config/x11/Xresources.
- NOTE: Like above, you need to specify filename as an argument to
~/.zshrcmade to live in~/.config/zsh/.zshrcwith$ZDOTDIRvariable.
Many programs like git, neovim, zathura already follow XDG Base Directory Specification. So their config files resides where it's required by the program.
Some files needs to be in ~ to ensure working of other programs (or when developers are too lazy to use $XDG_CONFIG_HOME).
~/.xprofile: Read by display managers at login, basically an autostart file for your system.~/.zprofile: Sets environment variables (enabling other programs to use$XDG_CONFIG_HOME).
Some of my dotfiles allow local customizations, which are files that are not checked out in git, to avoid some useless commits (like changing Xresources colorscheme) or to have private or temporary customizations.
git:~/.config/git/gitconfig_localtmux:~/.config/tmux/tmux_local.confXresources:~/.config/x11/Xresources_localzathura:~/.config/zathura/zathurarc_localzsh:~/.config/zsh/zshrc_local
Copyright (c) 2021 Jitesh. Released under the MIT License. See LICENSE.md for details.