SiyerBOBO
deepin
2019-02-18 01:33 难道要我在~/.bashrc 里alias cls = 'history -c' ?那我printf "\033c"肿么办....
Reply Like 0 View the author
https://bbs.deepin.org/post/174810
history -c清除的是内存中保留的当前交互式shell会话的命令历史,但是shell脚本执行过程会fork一个非交互式 ...

Popular Ranking
ChangePopular Events
More
sudo vim cls
#! /bin/bash
#
printf "\033c"
history -c
保存退出
为什么每次我执行cls都会只清屏不清除历史输入啊。。?求教大佬