Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Dec 25, 2024
1 parent d001c47 commit c2fbd78
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 39 deletions.
8 changes: 8 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ export default defineConfig({
"en":"What's Supported?",
},
},
{
label: "Commands AutoCompletions",
link: '/starts/completions/',
translations:{
"zh-CN":"命令行自动补全",
"en":"Commands AutoCompletions",
},
},
],
},
{
Expand Down
45 changes: 26 additions & 19 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,34 @@ hero:
- Lazy Worms
- Those always up for something new

import { Card, CardGrid, Icon } from '@astrojs/starlight/components';
import { Card, CardGrid, Icon } from "@astrojs/starlight/components";

## Features

<CardGrid>
<Card title="Cross-platform" icon="list-format">
Supports Windows/MacOS/Linux.
</Card>
<Card title="Supports multi SDKs" icon="list-format">
Supports thousands of [SDKs and Tools](/starts/sdklist/).
</Card>
<Card title="Easy to use" icon="list-format">
Built with Terminal UI inspired by lazygit, more intuitive.
</Card>
<Card title="Fast & Stable" icon="rocket">
Version lists for SDKs are cached in [vsources](https://github.com/gvcgo/vsources).
</Card>
<Card title="All-in-one" icon="puzzle">
No plugins needed, just out of the box.
</Card>
<Card title="Lock SDK version for a project" icon="seti:lock">
Supports locking SDK version for each project.
</Card>
<Card title="Cross-platform" icon="list-format">
Supports Windows/MacOS/Linux.
</Card>
<Card title="Supports multi SDKs" icon="list-format">
Supports thousands of [SDKs and Tools](/starts/sdklist/).
</Card>
<Card title="Easy to use" icon="list-format">
Built with Terminal UI inspired by lazygit, more intuitive.
</Card>
<Card title="user-friendly" icon="list-format">
Supports CLI. Users can choose either CLI or GUI.
</Card>
<Card title="Fast & Stable" icon="rocket">
Version lists for SDKs are cached in
[vsources](https://github.com/gvcgo/vsources).
</Card>
<Card title="All-in-one" icon="puzzle">
No plugins needed, just out of the box.
</Card>
<Card title="Lock SDK version for a project" icon="seti:lock">
Supports locking SDK version for each project.
</Card>
<Card title="Atuo completions" icon="list-format">
Auto completions for diffrent shells, like bash, zsh, powershell, etc.
</Card>
</CardGrid>
25 changes: 25 additions & 0 deletions src/content/docs/starts/completions.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Shell completions.
description: Setup shell completions for vmr.
---

import { Tabs, TabItem, Aside } from "@astrojs/starlight/components";

## Setup completions for diffrent shells.

<Tabs>
<TabItem label="Powershell" icon="seti:shell">
vmr completion powershell >>
.\Documents\WindowsPowerShell\vmr_completions.ps1 # Add following line to
powershell profile at $HOME\Documents\WindowsPowerShell\profile.ps1
Import-Module -Name "$HOME\Documents\WindowsPowerShell\vmr_completions.ps1"
</TabItem>
<TabItem label="Bash" icon="seti:shell">
vmr completion bash >> ~/vmr_completions.sh # Add following line to bash
profile at $HOME/.bashrc source $HOME/vmr_completions.sh
</TabItem>
<TabItem label="zsh" icon="seti:shell">
vmr completion zsh >> ~/vmr_completions.sh # Add following line to zsh
profile at $HOME/.zshrc source $HOME/vmr_completions.sh
</TabItem>
</Tabs>
46 changes: 26 additions & 20 deletions src/content/docs/zh-cn/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,39 @@ hero:
icon: github
---

## 什么人比较适合用VMR
## 什么人比较适合用 VMR

- 多语言程序员
- 懒人
- 喜欢折腾新玩意的人

import { Card, CardGrid, Icon } from '@astrojs/starlight/components';
import { Card, CardGrid, Icon } from "@astrojs/starlight/components";

## 功能特点

<CardGrid>
<Card title="跨平台" icon="list-format">
支持 Windows/MacOS/Linux.
</Card>
<Card title="支持多种SDK" icon="list-format">
支持[数以千计的SDK](/zh-cn/starts/sdklist/)和编程工具.
</Card>
<Card title="方便好用" icon="list-format">
受到lazygit启发,内置TUI,使用更符合直觉.
</Card>
<Card title="快速且稳定" icon="rocket">
因为VMR的版本信息都缓存在[vsources](https://gitee.com/moqsien/vsources)仓库.
</Card>
<Card title="无需插件" icon="puzzle">
无需烦人的插件,开箱即用.
</Card>
<Card title="支持对项目锁定SDK版本" icon="seti:lock">
每个项目都可以锁定不同的SDK版本,编辑器或者IDE打开模拟终端时,自动切换至锁定版本.
</Card>
<Card title="跨平台" icon="list-format">
支持 Windows/MacOS/Linux.
</Card>
<Card title="支持多种SDK" icon="list-format">
支持[数以千计的SDK](/zh-cn/starts/sdklist/)和编程工具.
</Card>
<Card title="方便好用" icon="list-format">
受到lazygit启发,内置TUI,使用更符合直觉.
</Card>
<Card title="人性化" icon="list-format">
同时支持命令行模式,照顾更多用户的习惯.
</Card>
<Card title="快速且稳定" icon="rocket">
因为VMR的版本信息都缓存在[vsources](https://gitee.com/moqsien/vsources)仓库.
</Card>
<Card title="无需插件" icon="puzzle">
无需烦人的插件,开箱即用.
</Card>
<Card title="支持对项目锁定SDK版本" icon="seti:lock">
每个项目都可以锁定不同的SDK版本,编辑器或者IDE打开模拟终端时,自动切换至锁定版本.
</Card>
<Card title="命令行自动补全" icon="list-format">
支持Shell命令自动补全. 目前支持的Shell有bash/zsh/powershell等.
</Card>
</CardGrid>
27 changes: 27 additions & 0 deletions src/content/docs/zh-cn/starts/completions.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: vmr命令行自动补全.
description: 为vmr设置命令行自动补全.
---

import { Tabs, TabItem, Aside } from "@astrojs/starlight/components";

## 设置命令行自动补全.

<Tabs>
<TabItem label="Powershell" icon="seti:shell">
vmr completion powershell >>
.\Documents\WindowsPowerShell\vmr_completions.ps1 #
将下面一行命令添加到Powershell的profile文件中($HOME\Documents\WindowsPowerShell\profile.ps1)
Import-Module -Name "$HOME\Documents\WindowsPowerShell\vmr_completions.ps1"
</TabItem>
<TabItem label="Bash" icon="seti:shell">
vmr completion bash >> ~/vmr_completions.sh #
将下面一行命令添加到Bash的profile文件中($HOME/.bashrc): source
$HOME/vmr_completions.sh
</TabItem>
<TabItem label="zsh" icon="seti:shell">
vmr completion zsh >> ~/vmr_completions.sh #
将下面一行命令添加到zsh的profile文件中($HOME/.zshrc): source
$HOME/vmr_completions.sh
</TabItem>
</Tabs>

0 comments on commit c2fbd78

Please sign in to comment.