- Place the file into
$AppData\Roaming\nushell\completions\pwsh-completions.nu - add the following line at the end of
$AppData\Roaming\nushell\config.nu
source ~/AppData/Roaming/nushell/completions/pwsh-completions.nu- add the following line to
~/AppData/Roaming/nushell/env.nuto execute PowerShell scripts directly:
# to execute powershell scripts
export def ps1 [script:path] {
pwsh -WorkingDirectory $env.PWD -File $script
}