Files
andwati 36f0caa66e Add modular dev environment installer, dotfiles, and desnap script
Adds a TUI-driven, rollback-capable installer (install/install.sh +
install/modules/*.sh) covering JS/Python/systems toolchains, dev tooling,
browsers, chat apps, GNOME extras, and misc setup (wakatime key, ssh/gpg
perms, apt mirror benchmarking), all sourced from each vendor's official
install method. bootstrap.sh stows the zsh/git/tmux/vscode dotfiles and
runs the installer; desnap.sh purges snapd and replaces default snaps with
apt/Flatpak equivalents.
2026-07-15 17:02:27 +03:00

23 lines
835 B
Bash

install_perms() {
if [[ -d "$HOME/.ssh" ]]; then
chmod 700 "$HOME/.ssh"
find "$HOME/.ssh" -maxdepth 1 -type f ! -name '*.pub' -exec chmod 600 {} +
find "$HOME/.ssh" -maxdepth 1 -type f -name '*.pub' -exec chmod 644 {} +
if [[ -f "$HOME/.ssh/config" ]]; then chmod 600 "$HOME/.ssh/config"; fi
if [[ -f "$HOME/.ssh/authorized_keys" ]]; then chmod 600 "$HOME/.ssh/authorized_keys"; fi
if [[ -f "$HOME/.ssh/known_hosts" ]]; then chmod 644 "$HOME/.ssh/known_hosts"; fi
ok "fixed ~/.ssh permissions"
else
warn "~/.ssh not found, skipping"
fi
if [[ -d "$HOME/.gnupg" ]]; then
chmod 700 "$HOME/.gnupg"
find "$HOME/.gnupg" -type d -exec chmod 700 {} +
find "$HOME/.gnupg" -type f -exec chmod 600 {} +
ok "fixed ~/.gnupg permissions"
else
warn "~/.gnupg not found, skipping"
fi
}