删除出现在每个新终端 window 开头的“/usr/share/calendar/calendar.history”

Removing "/usr/share/calendar/calendar.history" from appearing at the beginning of every new Terminal window

这很奇怪。大约一年前,我正在玩 Mac 终端复活节彩蛋,例如星球大战、Emacs 游戏等

但有一个我一直无法摆脱。如果您在终端中键入 cat /usr/share/calendar/calendar.history,您将看到一个重要日期列表。我每天在我的终端机顶部收到大约 5 个交付。见下文。

我一直无法摆脱它,这让我发疯。有没有人知道如何摆脱这个?

我通过 defaults write com.apple.finder AppleShowAllFiles YES 然后查看一些文件找到了 grep 文件。

在某些时候我写了 nano ~/.bash_profile 并包含了

today=date "+%m/%d" grep $today /usr/share/calendar/calendar.birthday grep $today /usr/share/calendar/calendar.computer grep $today /usr/share/calendar/calendar.history grep $today /usr/share/calendar/calendar.lotr grep $today /usr/share/calendar/calendar.music