style: normalize whitespace and line endings in shell scripts

- Standardize indentation and spacing across install.sh and lib files
- Fix line ending inconsistencies for better cross-platform compatibility
- Improve curl flag usage in neovim.sh (-kLo with explicit temp path)
- Add theme persistence functionality to remember user's colorscheme choice

These changes improve code consistency and add the ability to save/restore
the selected theme across sessions.
This commit is contained in:
marvin.dietermann
2026-04-10 12:46:48 +02:00
parent d5f57a3511
commit fbc1e60afc
4 changed files with 59 additions and 10 deletions

View File

@@ -78,6 +78,12 @@ backup_config() {
info "Backed up $(basename "$src") → $BACKUP_DIR/"
}
# ── TLS workaround ───────────────────────────────────────────────
# Many corporate/WSL environments have broken CA chains. Export this so
# all git operations (clone, pull) skip certificate verification,
# matching the -k flag used on all curl calls throughout the installer.
export GIT_SSL_NO_VERIFY=1
# ── Detect environment ──────────────────────────────────────────
IS_WSL=false
[[ -f /proc/version ]] && grep -qi microsoft /proc/version && IS_WSL=true