Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有别名
la=ls -a
然后我可以在此之后定义第二个别名吗?
ll=la -l
我似乎无法让它与 cmder(一个 Windows 终端仿真器)一起使用,它实际上只是打包 clink、ConEmu 和其他一些东西。
AFAIK,您不能对 cmd.exe 使用嵌套别名。
但是,您可以创建简单的批处理文件,而一个批处理可能会调用其他批处理。
别名在不同的 shell 中的工作方式不同。在 cmder 中,您可以通过两种方式定义别名:
alias.bat
在任何情况下,这些控制台别名仅用于扩展cmd.exe,您可以通过在 cmd.exe 提示符下执行来查看当前定义的别名列表
cmd.exe
doskey /macros