From 40cf3a9da23d367b132a4e04782d5abd282a642a Mon Sep 17 00:00:00 2001 From: "zhiqiang.T" Date: Wed, 20 Mar 2024 10:28:46 +0800 Subject: [PATCH] doc(powershell): howto create profile. (#132) * doc: add powershell mount instrucation * doc: add instruction --- docs/guides/quick-start.md | 6 +++++- docs/zh-hans/guides/quick-start.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/guides/quick-start.md b/docs/guides/quick-start.md index 7e1fa02a..da5649f7 100644 --- a/docs/guides/quick-start.md +++ b/docs/guides/quick-start.md @@ -110,7 +110,11 @@ Open PowerShell Profile: ```shell New-Item -Type File -Path $PROFILE # Just ignore the 'file already exists' error. -Invoke-Item $PROFILE + +# If it prompts "Unable to find the path", then you need to forcefully create profile. Add the "-Force" option. +# New-Item -Type File -Path $PROFILE –Force + +Invoke-Item $PROFILE # open Profile ``` Add the following line to the end of your profile and save: diff --git a/docs/zh-hans/guides/quick-start.md b/docs/zh-hans/guides/quick-start.md index 04d4e48b..d7ab8f51 100644 --- a/docs/zh-hans/guides/quick-start.md +++ b/docs/zh-hans/guides/quick-start.md @@ -92,7 +92,11 @@ echo 'vfox activate fish | source' >> ~/.config/fish/config.fish ```shell New-Item -Type File -Path $PROFILE # 无需在意 `文件已存在` 错误 -Invoke-Item $PROFILE + +# 如果它提示未能找到路径,那么你需要强制创建profile。添加"-Force"选项。 +# New-Item -Type File -Path $PROFILE –Force + +Invoke-Item $PROFILE # 打开profile ``` 将下面一行添加到你的 $PROFILE 文件末尾并保存: