我最喜欢的 Bash 技巧之一涉及创建用于标记和返回目录的别名,如下所述:http://www.huyng.com/archives/quick-bash-tip-directory-bookmarks/492/ .
在 Bash 中,它看起来像这样:
alias m1='alias g1="cd `pwd`"'
是否可以在powershell中创建类似的函数?
最佳答案
安装:
Install-Module -Name PSBookmark
用途:
#This will save $PWD as scripts
save scripts
#This will save C:\Documents as docs
save docs C:\Documents
#You don't have to type the alias name.
#Instead, you can just tab complete. This function uses dynamic parameters.
goto docs
关于powershell - Powershell 中的目录书签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7984974/