Can a bash script prepopulate the prompt with a command to run when it exits?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I run multiple bash script for FFmpeg. However, since I have several windows open, I lose track of what file I ran since I execute the file directly from the script there is no history of what I ran. The only history there is the first file I called for example: enter tv number i.e 19: 19 stream key: key Press [enter] to execute tv19 I press enter, and it runs tv19 but there is no record I ran tv19 in that window, so how can I echo the command to the $ like this [ibrod ~]$ ./tv19 than I can press enter and use the up arrow than I know what