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.
我想知道如何配置您的环境以在每次使用时执行带有特定参数的命令。所以,如果我有一个名为:
规格
我想知道我在哪里配置我的 bash 以始终使用:
规范 -c --format 嵌套
而不仅仅是“规格”
我试图把它当作我的 .bashrc 文件中的别名,比如:
别名 spec='spec -c --format pretty'
但没有用。任何提示?
你记得.bashrc编辑后执行你的吗?
.bashrc
. ~/.bashrc会做的。
. ~/.bashrc
另外,您的两个命令不匹配。您已经“嵌套”在一个中,而“漂亮”在另一个中。