mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 03:30:40 +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
|
||||
|
||||
```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)
|
||||
|
|
|
|||
|
|
@ -134,18 +134,20 @@ call :CheckCommandExists qwen
|
|||
if %ERRORLEVEL% EQU 0 (
|
||||
echo SUCCESS: Qwen Code is available as 'qwen' command.
|
||||
call qwen --version
|
||||
echo.
|
||||
echo INFO: Starting Qwen Code...
|
||||
echo.
|
||||
call qwen
|
||||
) else (
|
||||
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
|
||||
exit /b 0
|
||||
|
||||
|
|
|
|||
|
|
@ -553,14 +553,18 @@ main() {
|
|||
if command_exists qwen; then
|
||||
log_success "Qwen Code is ready to use!"
|
||||
echo ""
|
||||
log_info "Tips: Please restart your terminal and run: qwen"
|
||||
echo "You can now run: qwen"
|
||||
echo ""
|
||||
# Auto-start qwen
|
||||
log_info "Starting Qwen Code..."
|
||||
echo ""
|
||||
exec qwen
|
||||
else
|
||||
log_warning "Tips: To start using Qwen Code, please run:"
|
||||
log_warning "Qwen Code command not found in current session"
|
||||
echo ""
|
||||
local PROFILE_FILE
|
||||
PROFILE_FILE=$(get_shell_profile)
|
||||
echo " source ${PROFILE_FILE}"
|
||||
echo "To use Qwen Code immediately without restarting your terminal,"
|
||||
echo "run the following command in your current shell:"
|
||||
echo " eval \$(${0} --print-env)"
|
||||
echo ""
|
||||
log_info "Or simply restart your terminal, then run: qwen"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue