install: better install + use data and state

Don't complete remove repos, use git pull instead
Use XDG_DATA_HOME and XDG_STATE_HOME
This commit is contained in:
2 * r + 2 * t
2025-02-22 14:25:41 +11:00
parent 9f51b6eeed
commit 669eaa61cb
16 changed files with 113 additions and 103 deletions
+4 -5
View File
@@ -12,15 +12,14 @@ end
install-deps git
set -l dist $CONFIG/vscode
set -l dist $C_DATA/vscode
# Clone repo
confirm-overwrite $dist
git clone 'https://github.com/caelestia-dots/vscode.git' $dist
# Update/Clone repo
update-repo vscode $dist
# Install settings
for prog in 'Code' 'Code - OSS' 'VSCodium'
set -l conf $CONFIG/../$prog
set -l conf $CONFIG/$prog
if test -d $conf
confirm-copy $dist/settings.json $conf/User/settings.json
confirm-copy $dist/keybindings.json $conf/User/keybindings.json