Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. alias django-admin-jy="jython /path/to/jython-dev/dist/bin/django-admin.py"
  2.  
  3. The term 'which' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spell
  4. ing of the name, or if a path was included, verify that the path is correct and try again.
  5. At C:UsersDanDocumentsWindowsPowerShellMicrosoft.PowerShell_profile.ps1:9 char:27
  6.  
  7. + $cmd = @(which <<<< $_.Content)[0]
  8. + CategoryInfo : ObjectNotFound: (which:String) [], CommandNotFoundException
  9. + FullyQualifiedErrorId : CommandNotFoundException
  10.  
  11. function django-admin-jy {
  12. jython.exe /path/to/jython-dev/dist/bin/django-admin.py @args
  13. }
  14.  
  15. function New-BashStyleAlias([string]$name, [string]$command)
  16. {
  17. $sb = [scriptblock]::Create($command)
  18. New-Item "Function:global:$name" -Value $sb | Out-Null
  19. }
  20.  
  21. 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