Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

fix alias command

Roland Tannouse09c5dfc7e0d
diff --git a/setup.sh b/setup.sh
index bead2ce40b4..2d74b609760 100755
--- a/setup.sh
+++ b/setup.sh
@@ -95,12 +95,13 @@ echo "✅ Python dependencies installed"
# This alias hardcodes the venv python path so users don't need to activate.
echo ""
REPO_DIR="$SCRIPT_DIR"
-ALIAS_LINE="unsloth-ui() { ${REPO_DIR}/.venv/bin/python ${REPO_DIR}/cli.py ui \"\$@\" -f ${REPO_DIR}/studio/frontend/dist; }"
if ! grep -qF "unsloth-ui" ~/.bashrc 2>/dev/null; then
- echo "" >> ~/.bashrc
- echo "# Unsloth Studio launcher" >> ~/.bashrc
- echo "$ALIAS_LINE" >> ~/.bashrc
+ cat >> ~/.bashrc <<UNSLOTH_EOF
+
+# Unsloth Studio launcher
+unsloth-ui() { ${REPO_DIR}/.venv/bin/python ${REPO_DIR}/cli.py ui "\$@" -f ${REPO_DIR}/studio/frontend/dist; }
+UNSLOTH_EOF
echo "✅ Alias 'unsloth-ui' added to ~/.bashrc"
else
echo "✅ Alias 'unsloth-ui' already exists in ~/.bashrc"