新手PowerShell的問題猛砸別名:相當於在PowerShell中
我想打在PowerShell中的別名完全等同於該猛砸別名:
alias django-admin-jy="jython /path/to/jython-dev/dist/bin/django-admin.py"
與它修修補補,到目前爲止,我我們發現這很困難。
-PowerShell別名僅使用PowerShell命令工作+函數調用
- 不明確的方式,允許在一個PowerShell函數調用
-PowerShell無限數量的論點似乎要禁止標準輸出
值得一提的是,我已經嘗試瞭解決方案把這裏提出:http://huddledmasses.org/powershell-power-user-tips-bash-style-alias-command/
而且已經去tten上加載了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
我希望我可以給你多一個+1問這個問題!非常感謝。 – 2013-04-08 12:01:57