From 44cc46bfec017270f221ac15e0b29d09a5b90eef Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Fri, 13 Feb 2026 09:45:47 +0000 Subject: [PATCH] shorten unsloth-ui alias. auto append frontend dist folder location --- setup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index d586382273..e53b025460 100755 --- a/setup.sh +++ b/setup.sh @@ -95,7 +95,7 @@ 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="alias unsloth-ui='${REPO_DIR}/.venv/bin/python ${REPO_DIR}/cli.py ui'" +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 @@ -113,6 +113,5 @@ echo "╠═══════════════════════ echo "║ Run 'source ~/.bashrc' or open a ║" echo "║ new terminal, then launch with: ║" echo "║ ║" -echo "║ unsloth-ui -H 0.0.0.0 -p 8000 \ ║" -echo "║ -f studio/frontend/dist ║" +echo "║ unsloth-ui -H 0.0.0.0 -p 8000 ║" echo "╚══════════════════════════════════════╝"