diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
| commit | 669eaa61cbead28957c0b541212e05a8ca8c7a7f (patch) | |
| tree | 064b476d7757cd8abb19faddff67defba0c538bf /install/vscode.fish | |
| parent | readme: update help message (diff) | |
| download | caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.gz caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.bz2 caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.zip | |
install: better install + use data and state
Don't complete remove repos, use git pull instead
Use XDG_DATA_HOME and XDG_STATE_HOME
Diffstat (limited to 'install/vscode.fish')
| -rwxr-xr-x | install/vscode.fish | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/install/vscode.fish b/install/vscode.fish index e74163a..1f4b6b1 100755 --- a/install/vscode.fish +++ b/install/vscode.fish @@ -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 |