mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
chore(zshrc/prompt): offer to install starship with mise use -g instead of mise install
This commit is contained in:
7
zshrc
7
zshrc
@@ -251,8 +251,8 @@ fi
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if ! command-exists starship && [ -f "$MISE_INSTALL_PATH" ]; then
|
if ! command-exists starship && [ -f "$MISE_INSTALL_PATH" ]; then
|
||||||
read -q 'REPLY?starship is not installed, install with `mise install starship`? [y/N]:' &&
|
read -q 'REPLY?starship is not installed, install with `mise use -g starship`? [y/N]:' &&
|
||||||
echo && "$MISE_INSTALL_PATH" install starship
|
echo && "$MISE_INSTALL_PATH" use -g starship
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command-exists starship; then
|
if command-exists starship; then
|
||||||
@@ -260,7 +260,8 @@ if command-exists starship; then
|
|||||||
setup-completions starship "$(command-path starship)" starship completions zsh
|
setup-completions starship "$(command-path starship)" starship completions zsh
|
||||||
else
|
else
|
||||||
echo "WARN: starship not found, skipping prompt setup" >&2
|
echo "WARN: starship not found, skipping prompt setup" >&2
|
||||||
echo " install with: mise install starship" >&2
|
echo " install with: mise use -g starship" >&2
|
||||||
|
echo "" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user