Hi there, a newbie powershell question:
I'd like to make an alias in powershell exactly equivalent to this Bash alias:
alias django-admin-jy="jython /path/to/jython-dev/dist/bin/django-admin.py"
In tinkering with it so far, I've found this to be very difficult.
-Powershell Aliases only work with Powershell commands + function calls
-No clear way to allow for an unlimited number of args on a powershell function call
-Powershell seems to block stdout
UPDATE: Bounty of 150 pts added for a working implementation of bash alias simulation in powershell.
It's worth noting that I've tried the solution put forth here: http://huddledmasses.org/powershell-power-user-tips-bash-style-alias-command/
And have gotten the following syntax-related error on loading up powershell:
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:\Users\Dan\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:9 char:27
+ $cmd = @(which <<<< $_.Content)[0]
+ CategoryInfo : ObjectNotFound: (which:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I'll accept a fix to this as an answer as well.