Public/Disable-Virtualenv.ps1
Function Disable-Virtualenv { <# .SYNOPSIS To Disable Virtualenv on your PowerShell console .EXAMPLE Disable-Virtualenv .NOTES Version: 1.0.0 Author: Thomas ILLIET Creation Date: 22/07/2018 #> if($VirtualenvFolder) { # Remove Variable to unset VirtualEnv Remove-Variable -Scope 'Script' -Name 'VirtualenvFolder' Remove-Variable -Scope 'Script' -Name 'VirtualenvName' } else { Write-Error "Can not disable Virtualenv because it is not enabled." } } |