Last active
February 10, 2024 17:06
-
-
Save angelotrivelli/0bf89b76fc67b589d09fd2f61ea6ff73 to your computer and use it in GitHub Desktop.
alias to invoke quarto and also set $QUARTO_PYTHON path correctly for poetry .venv's
This file contains hidden or 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
function Invoke-QuartoWithPythonEnv { | |
$env:QUARTO_PYTHON=(Get-Command python).Source | |
echo "using python from $env:QUARTO_PYTHON" | |
&"C:\Program Files\Quarto\bin\quarto.exe" $args | |
} | |
Set-Alias -Name quarto -Value Invoke-QuartoWithPythonEnv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be in the content of
$profile
.Type
echo $profile
in a powershell-7 prompt to get the full path, then edit that.