Prompt to install mise if missing

This commit is contained in:
David Heinemeier Hansson
2024-06-07 22:08:54 +02:00
parent 263178ef64
commit da31662f4d

View File

@@ -1,8 +1,8 @@
if command -v mise &> /dev/null; then
eval "$(mise activate bash)"
else
echo "You're missing mise (replacement for rbenv + nodenv). Run 'omakub install', then select mise.sh"
echo "Then run 'mise use --global node@lts' and 'mise use --global ruby' to bring back node + ruby"
gum confirm "You're missing mise (replacement for rbenv + nodenv). Install now?" && \
source $OMAKUB_PATH/install/mise.sh
fi
eval "$(zoxide init bash)"