Skip to content

Commit

Permalink
feat(just): add devbox-global equivalent to setup-devbox
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Jan 14, 2024
1 parent 528b17e commit 0956827
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion build/ublue-os-just/70-nix.just
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,23 @@ setup-devbox ACTION="prompt":
if [ "$OPTION" == "prompt" ]; then
echo "Devbox is currently: ${bold}${CURRENT_STATE}${normal}"
echo 'What would you like to do with devbox?'
OPTION=$(ugum choose Install Uninstall)
OPTION=$(ugum choose Install "Install Hooks" Uninstall)
elif [ "$OPTION" == "help" ]; then
echo "Usage: ujust toggle-updates <option>"
echo " <option>: Specify the quick option - 'install' or 'remove'"
echo " Use 'install' to Install devbox"
echo " Use 'global' to Install devbox global hooks"
echo " Use 'remove' to Remove devbox."
exit 0
fi
if [ "${OPTION,,}" == "install" ]; then
curl -fsSL https://get.jetpack.io/devbox | bash
elif [ "${OPTION,,}" == "install hooks" ] || [ "${OPTION,,}" == "global" ]; then
echo 'Installing devbox global profile.'
devbox global pull https://devbox.getfleek.dev/high
echo 'run "devbox global run install-bash-hook" to configure bash shell'
echo 'run "devbox global run install-zsh-hook" to configure zsh shell'
echo 'run "devbox global run" to see other available configuration commands'
elif [ "${OPTION,,}" == "uninstall" ] || [ "${OPTION,,}" == "remove" ]; then
if [[ -x "/var/usrlocal/bin/devbox" ]]; then
sudo rm -f /var/usrlocal/bin/devbox
Expand All @@ -149,6 +156,15 @@ setup-devbox ACTION="prompt":
fi
fi

# TODO
# install global devbox profile with fleek's high bling setting
#devbox-global:
# echo 'Installing devbox global profile.'
# devbox global pull https://devbox.getfleek.dev/high
# echo 'run "devbox global run install-bash-hook" to configure bash shell'
# echo 'run "devbox global run install-zsh-hook" to configure zsh shell'
# echo 'run "devbox global run" to see other available configuration commands'h

# Installs nixGL
install-nixgl:
#!/usr/bin/bash
Expand Down

0 comments on commit 0956827

Please sign in to comment.