如何让特定的命令不保存在eshell history中
来源:互联网 发布:单片机软件工程师岗位 编辑:程序博客网 时间:2024/06/05 21:58
如何让特定的命令不保存在eshell history中
通过设置变量`eshell-input-filter’可以实现这一目的.
`eshell-input-filter’的值应该是一个判断函数,该函数接受eshell input作为参数,若该函数返回nil值,则表示该eshell input不会被记录在history中,否则记录在history中.
下面是一个从reddit中摘录的配置,用来设置所有以空格开头的eshell input都不记入history中
(setq eshell-input-filter (lambda (str) (not (or (string= "" str) (string-prefix-p " " str)))))
0 0
- 如何让特定的命令不保存在eshell history中
- 如何在history中记录命令执行时间
- linux 如何让linux的history命令显示时间记录
- 如何让桌面文件不保存在C盘
- 如何让特定文件不使用ARC
- 让linux history命令显示命令的执行时间、在哪个机器执行的这个命令
- history命令保存的最大数
- history命令保存的最大数?
- 让自己的history命令显示时间
- emacs中eshell的快捷键配制
- 在VC中如何使用对话框让用户选择自己保存文件的路径
- 在VC中如何使用对话框让用户选择自己保存文件的路径
- C#用webbrowser在Form中嵌入并且操作Excel表格,如何让他不提示是否保存并取消保存
- JFileChooser如何保存特定的文件类型
- 如何让history命令显示执行时间和执行者?
- Emacs Eshell 命令 setenv
- 在文件中查找特定的字符串方法 grep命令
- 如何显示history命令的执行时间
- Linux 查看系统硬件信息(实例详解)
- [Leetcode]#88 Merge Sorted Array
- [Leetcode]#92 Reverse Linked List II
- /etc/fstab 参数详解及如何设置开机自动挂载
- JPA - Architecture
- 如何让特定的命令不保存在eshell history中
- [Leetcode]#118 Pascal's Triangle
- 【Csdn】博客排名第一名、第二名
- [Leetcode]#119 Pascal's Triangle II
- [Leetcode]#125 Valid Palindrome
- 编码大全-控制循环
- [Leetcode]#136 Single Number
- 【Android基础】android shape详解
- [Leetcode]#141 Linked List Cycle