Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias django-admin-jy="jython /path/to/jython-dev/dist/bin/django-admin.py"
- The term 'which' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spell
- ing of the name, or if a path was included, verify that the path is correct and try again.
- At C:UsersDanDocumentsWindowsPowerShellMicrosoft.PowerShell_profile.ps1:9 char:27
- + $cmd = @(which <<<< $_.Content)[0]
- + CategoryInfo : ObjectNotFound: (which:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- function django-admin-jy {
- jython.exe /path/to/jython-dev/dist/bin/django-admin.py @args
- }
- function New-BashStyleAlias([string]$name, [string]$command)
- {
- $sb = [scriptblock]::Create($command)
- New-Item "Function:global:$name" -Value $sb | Out-Null
- }
- New-BashStyleAlias django-admin-jy 'jython.exe /path/to/jython-dev/dist/bin/django-admin.py @args'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement