-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate.sh
More file actions
executable file
·127 lines (113 loc) · 3.58 KB
/
validate.sh
File metadata and controls
executable file
·127 lines (113 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/bin/bash
echo "==================================="
echo " Dotfiles Migration Validation"
echo "==================================="
echo
# Check shell
echo "1. Shell Configuration"
echo "-------------------------------------"
if [[ $SHELL == *"zsh"* ]]; then
echo "✓ Zsh is default shell"
else
echo "✗ Zsh not default shell"
echo " Run: chsh -s \$(which zsh)"
fi
# Check tmux
echo
echo "2. Tmux Installation"
echo "-------------------------------------"
if command -v tmux &>/dev/null; then
echo "✓ Tmux installed"
if [[ -d ~/.config/tmux/plugins/tpm ]]; then
echo "✓ TPM (Tmux Plugin Manager) installed"
else
echo "✗ TPM not found"
fi
else
echo "✗ Tmux not installed"
fi
# Check key packages
echo
echo "3. Required Packages"
echo "-------------------------------------"
for pkg in zsh tmux fzf eza zoxide starship ripgrep bat fd yazi sesh; do
if command -v $pkg &>/dev/null; then
echo "✓ $pkg"
else
echo "✗ $pkg missing"
fi
done
# Check Omarchy zsh structure
echo
echo "4. Omarchy Zsh Integration"
echo "-------------------------------------"
if [[ -f ~/.local/share/omarchy/default/zsh/rc ]]; then
echo "✓ Zsh rc file exists"
else
echo "✗ Zsh rc file missing"
fi
if [[ -f ~/.local/share/omarchy/default/zsh/shell ]]; then
echo "✓ Zsh shell config exists"
else
echo "✗ Zsh shell config missing"
fi
if [[ -f ~/.local/share/omarchy/default/zsh/aliases ]]; then
echo "✓ Zsh aliases exist"
else
echo "✗ Zsh aliases missing"
fi
if [[ -f ~/.local/share/omarchy/default/zsh/functions ]]; then
echo "✓ Zsh functions exist"
else
echo "✗ Zsh functions missing"
fi
if [[ -f ~/.local/share/omarchy/default/zsh/completions ]]; then
echo "✓ Zsh completions exist"
else
echo "✗ Zsh completions missing"
fi
# Check configs
echo
echo "5. Configuration Files"
echo "-------------------------------------"
[[ -f ~/.zshrc ]] && echo "✓ .zshrc" || echo "✗ .zshrc missing"
[[ -f ~/.config/tmux/tmux.conf ]] && echo "✓ tmux.conf" || echo "✗ tmux.conf missing"
[[ -f ~/.config/starship.toml ]] && echo "✓ starship.toml" || echo "✗ starship.toml missing"
[[ -f ~/.config/nvim/init.lua ]] && echo "✓ nvim config" || echo "✗ nvim config missing"
# Check Neovim plugins
echo
echo "6. Neovim Plugin Configs"
echo "-------------------------------------"
[[ -f ~/.config/nvim/lua/custom/plugins/claude.lua ]] && echo "✓ Claude/AI plugin" || echo "✗ Claude/AI plugin missing"
[[ -f ~/.config/nvim/lua/custom/plugins/gitsigns.lua ]] && echo "✓ Git plugins" || echo "✗ Git plugins missing"
[[ -f ~/.config/nvim/lua/custom/plugins/telescope.lua ]] && echo "✓ Navigation plugins" || echo "✗ Navigation plugins missing"
# Check Hyprland bindings
echo
echo "7. Hyprland Configuration"
echo "-------------------------------------"
if grep -q "Aerospace-style" ~/.config/hypr/bindings.conf 2>/dev/null; then
echo "✓ Aerospace keybindings added"
else
echo "✗ Aerospace keybindings not found"
fi
# Check backup
echo
echo "8. Backup Status"
echo "-------------------------------------"
if ls ~/dotfiles-backup-*.tar.gz 1> /dev/null 2>&1; then
echo "✓ Backup found: $(ls -t ~/dotfiles-backup-*.tar.gz | head -1)"
else
echo "✗ No backup found"
fi
echo
echo "==================================="
echo " Validation Complete"
echo "==================================="
echo
echo "Next Steps:"
echo "1. Install missing packages (if any shown above)"
echo "2. Change shell to zsh: chsh -s \$(which zsh)"
echo "3. Log out and log back in"
echo "4. Open tmux and install plugins: Ctrl+A then Shift+I"
echo "5. Open nvim to let plugins install automatically"
echo