Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions src/installers/asdf.install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,23 @@ else

# Detect OS
case "$(uname -s)" in
Linux) OS=linux ;;
Darwin) OS=darwin ;;
*) Log "Unsupported OS: $(uname -s)"; exit 1 ;;
Linux) OS=linux ;;
Darwin) OS=darwin ;;
*)
Log "Unsupported OS: $(uname -s)"
exit 1
;;
esac

# Detect arch
case "$(uname -m)" in
x86_64) ARCH=amd64 ;;
aarch64|arm64) ARCH=arm64 ;;
i386|i686) ARCH=386 ;;
*) Log "Unsupported arch: $(uname -m)"; exit 1 ;;
x86_64) ARCH=amd64 ;;
aarch64 | arm64) ARCH=arm64 ;;
i386 | i686) ARCH=386 ;;
*)
Log "Unsupported arch: $(uname -m)"
exit 1
;;
esac

TARBALL="asdf-${APP_VERSION}-${OS}-${ARCH}.tar.gz"
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/setup.programs-conf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Log "Generating programs configuration"
printf "# [Autogenerated - do not edit: at $(date)] CLI-Config Install configuration --------" >$CLI_CONFIG_PROGRAMS_CONF
echo >>$CLI_CONFIG_PROGRAMS_CONF

echo '# init all cli-config tools' >> $CLI_CONFIG_PROGRAMS_CONF
echo '# init all cli-config tools' >>$CLI_CONFIG_PROGRAMS_CONF
{
echo 'autoload -Uz compinit'
echo 'setopt extendedglob'
Expand All @@ -19,7 +19,7 @@ echo '# init all cli-config tools' >> $CLI_CONFIG_PROGRAMS_CONF
echo 'fi'
echo 'unset _cli_config_zcompdump'
echo 'unsetopt extendedglob'
} >> $CLI_CONFIG_PROGRAMS_CONF
} >>$CLI_CONFIG_PROGRAMS_CONF

# plugin manager must be sourced first so lazyload is available to other confs
PLUGIN_MANAGER="${CLI_CONFIG_MODULES:-zimfw}"
Expand Down