Skip to content

Commit

Permalink
vmr ism
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Jan 1, 2025
1 parent 7c99eca commit 4a5c7d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/content/docs/guides/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ vmr nested-sessions
You should never use nested sessions and lock file at the same time. Or vmr will start a new session every time you run the cd command.
</Aside>

## Show the mode of crrent shell.

```bash
vmr is-session-mode
```
<Aside type="caution" title="Note">
Note that session mode is not recommended for common use. So you should close the terminal or use exit command to terminate session mode.
If you have installed an SDK in a session-mode shell using global mode, then the source command will not work.
You can then use the customed alias svmr to flush envs.
</Aside>

## SDK List not found?

<Aside type="caution" title="Note">
Expand Down
11 changes: 11 additions & 0 deletions src/content/docs/zh-cn/guides/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ vmr nested-sessions
注意不要同时使用锁定版本和嵌套sessions功能!否则,一直cd,一直新建session,会很酸爽。
</Aside>

## 显示当前Shell是否处于session模式

```bash
vmr is-session-mode
```
<Aside type="caution" title="Note">
注意,一般情况下,不推荐一直在session模式下工作,等到用完,记得使用exit命令退出session模式,或者直接关闭terminal。
如果在session模式的shell中,使用全局模式安装SDK,那么在使用source命令刷新环境变量时,不会成功加载新安装的SDK。
这时候可以使用vmr定制的命令别名svmr来刷新环境变量。
</Aside>

## SDK列表没找到?

<Aside type="caution" title="Note">
Expand Down

0 comments on commit 4a5c7d6

Please sign in to comment.