This topic created in 4107 days ago, the information mentioned may be changed or developed.
能实现linux的alias效果吗?
比如说
vim ~/.bashrc
...
alias ls='ls $LS_OPTIONS -ah | more'
...
3 replies • 2016-12-12 15:51:26 +08:00
 |
|
2
ioiioi Feb 27, 2015
似乎无法实现,我想将out-host -paging替代成less set-alias less "out-host -paging"
然后 get-alias | less
并不成功。
错误是 找不到参数名称与"-paging"匹配的参数。
pS:我接触powershell不过两天。
|
 |
|
3
leohxj Dec 12, 2016
使用函数定义,比如
``` function cnpm { npm $args } ```
|