每当我启动 GNU screen 并在其中进行一些目录移动时,我都会得到大量附加到我的 bash 历史记录中的此类行:
16469 2021-06-03 10:29:17 - cd "`printf '%b' '\0057home\0057epatton\0057BACKUPS'`"
16470 2021-06-03 10:29:37 - cd "`printf '%b' '\0057home\0057epatton'`"
16471 2021-06-03 10:29:39 - cd "`printf '%b' '\0057home\0057epatton\0057BACKUPS'`"
16472 2021-06-03 10:30:03 - cd "`printf '%b' '\0057home\0057epatton'`"
16473 2021-06-03 10:30:04 - cd "`printf '%b' '\0057home\0057epatton\0057BACKUPS'`"
16474 2021-06-03 10:30:10 - cd "`printf '%b' '\0057home\0057epatton'`"
16475 2021-06-03 10:30:11 - cd "`printf '%b' '\0057home\0057epatton\0057Charts'`"
16476 2021-06-03 10:30:45 - cd "`printf '%b' '\0057home\0057epatton'`"
16477 2021-06-03 10:30:47 - cd "`printf '%b' '\0057home\0057epatton\0057CloudCompare'`"
16478 2021-06-03 10:30:48 - cd "`printf '%b' '\0057home\0057epatton'`"
16479 2021-06-03 10:30:48 - cd "`printf '%b' '\0057home\0057epatton\0057Desktop'`"
16480 2021-06-03 10:30:49 - cd "`printf '%b' '\0057home\0057epatton'`"
16481 2021-06-03 10:30:50 - cd "`printf '%b' '\0057home\0057epatton\0057Exports'`"
我已将cd
其附加到我的HISTIGNORE
bash 变量中,但这并没有删除这些行。如何从我的历史记录中删除这些垃圾?