CR: dots-quantum tmux Package — Rollback

Backout Procedure

If migration fails, restore optimus configuration.

Emergency Shell Recovery

If shell won’t start:

# Use bash as fallback
/bin/bash

# Remove broken quantum symlinks
rm ~/.zshrc ~/.bashrc

# Restore optimus symlinks
cd ~/atelier/_projects/personal/dotfiles-optimus
stow -t ~ base/zsh
stow -t ~ base/bash

Full Rollback

# 1. Unstow all quantum packages
cd ~/atelier/_projects/personal/dots-quantum
for pkg in bash zsh git vim bin tmux hyprland waybar wofi mako \
           aerc zathura mimeapps cava eww chromium powershell \
           oh-my-posh claude ghostty kitty btop fastfetch fd fzf \
           ripgrep lazygit fish; do
    stow -D $pkg 2>/dev/null
done

# 2. Restore optimus shell configs
cd ~/atelier/_projects/personal/dotfiles-optimus
stow -t ~ base/zsh
stow -t ~ base/bash
stow -t ~ base/git

# 3. Restore optimus app configs
stow -t ~ apps/aerc
stow -t ~ apps/zathura
stow -t ~ apps/mimeapps
stow -t ~ apps/cava
stow -t ~ apps/eww
stow -t ~ apps/chromium
stow -t ~ wm/hyprland
stow -t ~ apps/oh-my-posh

# 4. Restore tmux-config (if was using it)
ln -sf ~/atelier/_projects/personal/tmux-config ~/.config/tmux
ln -sf ~/atelier/_projects/personal/tmux-config/07_TMUXINATOR ~/.config/tmuxinator

# 5. Reload shell
exec zsh

Partial Rollback (Single Package)

# Example: Roll back just aerc to optimus
dq-stow -D aerc
cd ~/atelier/_projects/personal/dotfiles-optimus
stow -t ~ apps/aerc

Restore from Backup

# If all else fails, restore from backup
BACKUP_DIR=~/dotfiles-backup-YYYYMMDD
cp $BACKUP_DIR/zshrc.backup ~/.zshrc
cp $BACKUP_DIR/bashrc.backup ~/.bashrc
cp $BACKUP_DIR/gitconfig.backup ~/.gitconfig
exec zsh