linux - 银色搜索器 : how to unignore files in the . gitignore?

标签 linux bash ack ag

我有一个别名文件夹。这些是 bash 文件。有些是敏感的,所以我将它们保存在 .gitignore 中。

~/.bash_utilities
   bash_a.sh
   bash_b.sh
   .gitignore

.gitignore: bash_b.sh

问题是我的 Silver Searcher 查看 .gitignore 并在查看时跳过这些文件。我如何告诉 Silver Searcher 忽略 .gitignore 文件并查看目录中的所有文件?

我当前的命令是

ag $1 ~/.bash*

最佳答案

IIUC,在 man ag 中有很好的解释:

-u --unrestricted

Search all files. This ignores .ignore, .gitignore, etc. It searches binary and hidden files as well.

-U --skip-vcs-ignores

Ignore VCS ignore files (.gitignore, .hgignore), but still use .ignore.

关于linux - 银色搜索器 : how to unignore files in the . gitignore?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48048529/

相关文章:

linux - 修改子进程的输出以添加时间戳

bash - 为什么我得到 "unexpected token ` ;'?

linux - ack 忽略与正路径匹配结合的路径匹配的文件

windows - Linux 和 Windows 链接器之间的区别

linux - ASM HelloWorld程序

bash - Tesseract 训练 - 微调角色

bash 测试产生 "echo: command not found"

bash - 在 bash 子 shell 中确认

windows - 如何在 Windows 上安装和使用 ack 库?

linux - gtkdialog 中文本字段中的文本值未刷新