-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
112 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |