#!/bin/sh set -e . "$(dirname "$0")/shlib/bootstrap.sh" . "$(dirname "$0")/shlib/log.sh" . "$(dirname "$0")/shlib/os.sh" . "$(dirname "$0")/shlib/tmux.sh" main() { if os_is_macos; then bootstrap_macos elif os_is_linux_debian; then bootstrap_linux_debian else log_error "Unexpected OS: $(os_print)" exit 1 fi || { log_error "Failed to bootstrap install script" exit 1 } if os_is_macos; then stow macos-gpg fi if os_is_linux_debian; then stow gpg fi stow ghostty stow ansiweather stow newsboat stow wallpapers stow ssh stow bin stow vim stow nvim stow zsh stow git stow tmux stow aerc stow isync stow msmtp stow lazygit log_success "Successfully linked all dotfiles." mkdir -p ~/Mail/Gmail/INBOX ~/Mail/iCloud/INBOX ~/bin/ ~/src/ log_info "Initializing TPM (Tmux Plugin Manager)..." if ! tmux_setup_tpm; then log_error "Failed to setup tpm" exit 1 fi log_success "Setup complete!" } main "$@"