Home - Zawaken/dotfiles GitHub Wiki
Basic package setup Arch + bspwm
sudo pacman -Syu alacritty bspwm sxhkd rofi base-devel dunst vim neovim polybar nitrogen ranger tmux vifm picom yay zsh
echo dotfiles >> $HOME/.gitignore
cd
git clone --bare [email protected]:zawaken/dotfiles.git "${HOME}/dotfiles"
alias dotfiles='git --git-dir="${HOME}/dotfiles" --work-tree="${HOME}"'
dotfiles checkout # See next section if this failed.
dotfiles config --local status.showUntrackedFiles no
dotfiles checkout
If dotfiles checkout
fails, run these commands.
Alternatively you could force the checkout with dotfiles checkout --force
, this is not adviseable on a set up system. However it might be best for a system that is not yet set up.
bak_dir="${HOME}/.dotfiles-backup-$(date +'%m%d%y-%H%M%S')"
mkdir -p "${bak_dir}"
dotfiles checkout 2>&1 | grep -E -e "^\s+.*$" | awk {'print $1'} | xargs -I{} dirname {} | xargs -I{} mkdir -p "${bak_dir}/{}"
dotfiles checkout 2>&1 | grep -E -e "^\s+.*$" | awk {'print $1'} | xargs -I{} mv {} "${bak_dir}/{}"