Skip to content

Commit

Permalink
Remove SDKMAN! in favor of pkgx (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs authored Apr 29, 2024
1 parent fbd2497 commit f904283
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 85 deletions.
3 changes: 3 additions & 0 deletions home/.chezmoiremove
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
.antigen/
.antigenrc

# pkgx can be used instead
.sdkman/

# Remove font variants there used to be installed but no longer are
.local/share/fonts/Fira Code * Nerd Font Complete*.ttf
!.local/share/fonts/Fira Code Regular Nerd Font Complete Mono.ttf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ done

readonly wanted_packages=(
opendev.org/git-review
openjdk.org
maven.apache.org
)

missing_packages=()
Expand Down
33 changes: 0 additions & 33 deletions home/.chezmoiscripts/run_after_32-install-sdkman-packages.sh.tmpl

This file was deleted.

22 changes: 0 additions & 22 deletions home/.chezmoitemplates/sdkman-library

This file was deleted.

11 changes: 0 additions & 11 deletions home/dot_local/bin/executable_full-upgrade.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
# {{ template "scripts-library" }}
# {{ template "homebrew-library" }}
# {{ template "volta-library" }}
# {{ template "sdkman-library" }}

# The following line is for ShellCheck to correctly identify the above include
true || source ../../.chezmoitemplates/scripts-library
true || source ../../.chezmoitemplates/homebrew-library
true || source ../../.chezmoitemplates/volta-library
true || source ../../.chezmoitemplates/sdkman-library

ensure_path_entry "${HOME}/.local/bin"

Expand Down Expand Up @@ -151,15 +149,6 @@ if npm --version &>/dev/null; then
c npm update --global
fi

# shellcheck disable=SC2310
if sdk version &>/dev/null; then
log_task "Updating sdk"
c sdk selfupdate

log_task "Updating sdk packages"
c sdk update
fi

if timeout 2 wsl.exe --version &>/dev/null; then
log_task "Updating VS Code"
# WinGet returns non zero code if no upgrade is found, so for now we simply ignore it.
Expand Down
18 changes: 0 additions & 18 deletions home/dot_sdkman/etc/config

This file was deleted.

2 changes: 1 addition & 1 deletion home/dot_zshrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Load .profile
if [[ -r "${HOME}/.profile" ]]; then
# Do not use emulate here, as SDKMAN! will produce errors otherwise
# Do not use emulate here, as pkgx errors with unsupported shell
source "${HOME}/.profile"
fi

Expand Down

0 comments on commit f904283

Please sign in to comment.