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.
我在 .profile 中有一个别名,可以在输入“c”时清除终端:
alias c='clear'
每次在终端中输入“c”时,我都想调用 KornShell (ksh) 脚本。实现这一目标的最佳方法是什么?我用谷歌搜索并找不到任何东西。
别名本质上只是您实际键入的内容的文本替换。尝试修改您的别名以读取
alias c='clear; myscript.ksh'