Skip to content

Commit

Permalink
don't use official yet stupid deno_install script
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 15, 2024
1 parent fe5050b commit 0e02dc9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
8 changes: 8 additions & 0 deletions commands/setup-environment-commands
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,14 @@ else
rubygems /usr/bin/gem
fi

# Deno for official yet stupid deno_install script, commented out as [setup-util-deno] is superior
# if test -z "${DENO_INSTALL-}" -a -d "$HOME/.deno"; then
# export DENO_INSTALL="$HOME/.deno"
# fi
# if test -n "${DENO_INSTALL-}"; then
# PATH="$DENO_INSTALL/bin:$PATH"
# fi

# NVM
if test -z "${NVM_DIR-}" -a -d "$HOME/.nvm"; then
export NVM_DIR="$HOME/.nvm"
Expand Down
2 changes: 1 addition & 1 deletion commands/setup-util-deno
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ function setup_util_deno() (
fi

# setup
# Don't use the official yet setupid [INSTALLER='https://deno.land/install.sh'], unlike setup-util, it ignores XDG and dumps the bin in [$HOME/.deno/bin/deno] with nothing else in [$HOME/.deno] except that bin, making it useless without slow clutter of env modifications
local arch options=(
--cli='deno'
"$@"
AUR='deno' # ARCH
BREW='deno'
CARGO='deno'
CHOCO='deno'
INSTALLER='https://deno.land/install.sh'
PORT='deno'
SCOOP='deno'
SNAP='deno'
Expand Down
20 changes: 10 additions & 10 deletions commands/setup-util-file
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ function setup_util_file() (
--name='File type identification utility'
--cli='file'
"$@"
APK='file' # ALPINE
APT='file' # UBUNTU
AUR='file' # ARCH
BREW='file' # MACOS
CHOCOLATEY='file' # WINDOWS
APK='file' # ALPINE
APT='file' # UBUNTU
AUR='file' # ARCH
BREW='file' # MACOS
CHOCOLATEY='file' # WINDOWS
EMERGE='sys-apps/file' # GENTOO
NIX='nixpkgs.file' # NIX
RPM='file' # FEDORA
URPMI='file' # MAGEIA
XBPS='file' # VOID
ZYPPER='file' # SUSE
NIX='nixpkgs.file' # NIX
RPM='file' # FEDORA
URPMI='file' # MAGEIA
XBPS='file' # VOID
ZYPPER='file' # SUSE
)
setup-util "${options[@]}"
)
Expand Down

0 comments on commit 0e02dc9

Please sign in to comment.