mirror of
https://github.com/andwati/dotfiles.git
synced 2026-11-16 16:55:13 +00:00
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.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
install_onedrive() {
|
||||
if has_cmd onedrive; then
|
||||
ok "onedrive already installed"
|
||||
return
|
||||
fi
|
||||
|
||||
local version repo_base
|
||||
version=$(. /etc/os-release; echo "$VERSION_ID")
|
||||
repo_base="https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_${version}"
|
||||
|
||||
if ! curl -fsSL -o /dev/null "${repo_base}/Release"; then
|
||||
warn "onedrive's OBS repo has no build for Ubuntu ${version} yet, falling back to 24.04"
|
||||
version="24.04"
|
||||
repo_base="https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_${version}"
|
||||
fi
|
||||
|
||||
apt_add_repo onedrive /etc/apt/keyrings/onedrive.gpg \
|
||||
"${repo_base}/Release.key" \
|
||||
"deb ${repo_base}/ ./"
|
||||
apt_install onedrive
|
||||
}
|
||||
Reference in New Issue
Block a user