Skip to content

Commit

Permalink
docs: add a single-line command to update the PowerShell profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Acosta authored Jun 14, 2024
1 parent 8447522 commit 74dc3f7
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions docs/guides/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,11 @@ echo 'vfox activate fish | source' >> ~/.config/fish/config.fish

::: details Powershell

Open PowerShell Profile:

```shell
New-Item -Type File -Path $PROFILE # Just ignore the 'file already exists' error.

# 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:
if (-not (Test-Path -Path $PROFILE)) { New-Item -Type File -Path $PROFILE -Force }; Add-Content -Path $PROFILE -Value 'Invoke-Expression "$(vfox activate pwsh)"'

```shell
Invoke-Expression "$(vfox activate pwsh)"
# Create profile if it does not exist: New-Item -Type File -Path $PROFILE -Force
# Add content to profile: Add-Content -Path $PROFILE -Value 'Invoke-Expression "$(vfox activate pwsh)"'
```
:::
Expand Down

0 comments on commit 74dc3f7

Please sign in to comment.