mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
start qwen after installation
This commit is contained in:
parent
e65953de04
commit
8133c968ed
3 changed files with 20 additions and 14 deletions
|
|
@ -38,7 +38,7 @@ Qwen Code is an open-source AI agent for the terminal, optimized for [Qwen3-Code
|
||||||
#### Linux / macOS
|
#### Linux / macOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash
|
bash -c "$(curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Windows (Run as Administrator CMD)
|
#### Windows (Run as Administrator CMD)
|
||||||
|
|
|
||||||
|
|
@ -134,18 +134,20 @@ call :CheckCommandExists qwen
|
||||||
if %ERRORLEVEL% EQU 0 (
|
if %ERRORLEVEL% EQU 0 (
|
||||||
echo SUCCESS: Qwen Code is available as 'qwen' command.
|
echo SUCCESS: Qwen Code is available as 'qwen' command.
|
||||||
call qwen --version
|
call qwen --version
|
||||||
|
echo.
|
||||||
|
echo INFO: Starting Qwen Code...
|
||||||
|
echo.
|
||||||
|
call qwen
|
||||||
) else (
|
) else (
|
||||||
echo WARNING: Qwen Code may not be in PATH. Please check your npm global bin directory.
|
echo WARNING: Qwen Code may not be in PATH. Please check your npm global bin directory.
|
||||||
|
echo.
|
||||||
|
echo ===========================================
|
||||||
|
echo SUCCESS: Installation completed!
|
||||||
|
echo The source information is stored in %USERPROFILE%\.qwen\source.json
|
||||||
|
echo.
|
||||||
|
echo ===========================================
|
||||||
)
|
)
|
||||||
|
|
||||||
echo.
|
|
||||||
echo ===========================================
|
|
||||||
echo SUCCESS: Installation completed!
|
|
||||||
echo The source information is stored in %USERPROFILE%\.qwen\source.json
|
|
||||||
echo Tips: Please restart your terminal and run: qwen
|
|
||||||
echo.
|
|
||||||
echo ===========================================
|
|
||||||
|
|
||||||
endlocal
|
endlocal
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -553,14 +553,18 @@ main() {
|
||||||
if command_exists qwen; then
|
if command_exists qwen; then
|
||||||
log_success "Qwen Code is ready to use!"
|
log_success "Qwen Code is ready to use!"
|
||||||
echo ""
|
echo ""
|
||||||
log_info "Tips: Please restart your terminal and run: qwen"
|
echo "You can now run: qwen"
|
||||||
echo ""
|
echo ""
|
||||||
|
# Auto-start qwen
|
||||||
|
log_info "Starting Qwen Code..."
|
||||||
|
echo ""
|
||||||
|
exec qwen
|
||||||
else
|
else
|
||||||
log_warning "Tips: To start using Qwen Code, please run:"
|
log_warning "Qwen Code command not found in current session"
|
||||||
echo ""
|
echo ""
|
||||||
local PROFILE_FILE
|
echo "To use Qwen Code immediately without restarting your terminal,"
|
||||||
PROFILE_FILE=$(get_shell_profile)
|
echo "run the following command in your current shell:"
|
||||||
echo " source ${PROFILE_FILE}"
|
echo " eval \$(${0} --print-env)"
|
||||||
echo ""
|
echo ""
|
||||||
log_info "Or simply restart your terminal, then run: qwen"
|
log_info "Or simply restart your terminal, then run: qwen"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue