Skip to content

Instantly share code, notes, and snippets.

@PyYoshi
Created August 2, 2012 12:07
Show Gist options
  • Select an option

  • Save PyYoshi/3236576 to your computer and use it in GitHub Desktop.

Select an option

Save PyYoshi/3236576 to your computer and use it in GitHub Desktop.
virtualenvwrapper-powershell用のプロファイル
# virtualenvwrapper用の設定
$WORKON_HOME = "$HOME\.virtualenvs"
$env:WORKON_HOME = $WORKON_HOME
# $WORKON_HOMEがない場合は作成する
if(-not(Test-Path -Path $WORKON_HOME)){
New-Item -Path $WORKON_HOME -itemType Directory | Out-Null
}
# virtualenvwrapper-powershellを起動時にロードする
$virtualenv_module_path = "$profile\..\Modules\VirtualEnvWrapper"
Import-Module $virtualenv_module_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment