diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-02 12:28:42 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-02 12:28:42 +1100 |
| commit | 8db8ed15b36b966be5735a02a9c8d23892f88739 (patch) | |
| tree | 47c00ab358af7608d7d490c34c3833a4a663e011 | |
| parent | install: scripts update deps (diff) | |
| download | caelestia-cli-8db8ed15b36b966be5735a02a9c8d23892f88739.tar.gz caelestia-cli-8db8ed15b36b966be5735a02a9c8d23892f88739.tar.bz2 caelestia-cli-8db8ed15b36b966be5735a02a9c8d23892f88739.zip | |
install: update vscode install
| -rwxr-xr-x | install/vscode.fish | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/install/vscode.fish b/install/vscode.fish index 56ddd39..8d4aa6c 100755 --- a/install/vscode.fish +++ b/install/vscode.fish @@ -3,7 +3,8 @@ . (dirname (status filename))/util.fish function confirm-copy -a from to - test -L $to -a (realpath $to) = (realpath $from) && return + test -L $to -a "$(realpath $to 2> /dev/null)" = (realpath $from) && return # Return if symlink + cmp $from $to 2> /dev/null && return # Return if files are the same if test -e $to read -l -p "input '$(realpath $to) already exists. Overwrite? [y/N] ' -n" confirm test "$confirm" = 'y' -o "$confirm" = 'Y' && log 'Continuing.' || return @@ -31,7 +32,10 @@ end for prog in code code-insiders codium if which $prog &> /dev/null log "Installing extensions for '$prog'" - $prog --install-extension catppuccin.catppuccin-vsc + if ! contains 'catppuccin.catppuccin-vsc-icons' ($prog --list-extensions) + read -l -p "input 'Install catppuccin icons (for light/dark integration)? [Y/n] ' -n" confirm + test "$confirm" = 'n' -o "$confirm" = 'N' || $prog --install-extension catppuccin.catppuccin-vsc-icons + end $prog --install-extension $dist/caelestia-vscode-integration/caelestia-vscode-integration-*.vsix end end |