Skip to content

Commit

Permalink
Make it possible to use RCLONE_PASSWORD_COMMAND in Windows with curre…
Browse files Browse the repository at this point in the history
…nt WSL toolset

Follow GH-817
  • Loading branch information
kachick committed Oct 4, 2024
1 parent a7b9e0f commit 5f2ecd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/powershell/Profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ function la {

# https://github.com/microsoft/winget-cli/issues/2498#issuecomment-1553863082
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
# Specify `bash -i` to run the bash as interactive mode
[Environment]::SetEnvironmentVariable("RCLONE_PASSWORD_COMMAND", 'wsl.exe --exec bash -ic "pass show rclone"')
Invoke-Expression (&starship init powershell)
Invoke-Expression (& { (zoxide init powershell | Out-String) })

Expand Down

0 comments on commit 5f2ecd3

Please sign in to comment.