
今天上班,我想知道一个history
我不太熟悉的命令,我确定我刚刚执行过。然而,当我history
在同一个终端窗口运行时,我没有找到任何关于这个命令的信息。更让我困惑甚至恼火的是,我在 的输出中发现了一个以“*”开头的空行history
。有谁能告诉我为什么吗?请给出一些具体的解释。
2008 make build_asdfasdfa
2009 ls
2010 cd asdfasdf
2011 ls
2012*
2013 exxxxxxxxxxxxxxxxxxx
2014 ls
2015 exxxxxxxxxxxxxxxxxx
2016 ls
2017 exxxxxxxxxxxxxxxxxxxxxx
2018 ls
答案1
*
已修改的历史记录行将在命令开头显示,前提是mark-modified-lines
已在 ReadLine 配置中打开该属性。
ReadLine 文档是这样说的:
mark-modified-lines
This variable, when set to On, says to display an asterisk ('*') at the
start of history lines which have been modified. This variable is off
by default.