1

I have very recently started using fish shell on my mac. I have a certain (hidden) .files which I don't want to appear in the fish command completion (from history), since then they do not remain hidden at all :(.

Is there a way I can make fish ignore all commands involving these files to store to history?

Thanks in advance, Nikhil

4

1 回答 1

3

如果您以空格开头敏感命令,则该命令将不会添加到历史记录中。除了破解鱼源之外,我不知道在将命令附加到历史记录之前以编程方式过滤命令的机制。

于 2014-02-12T14:14:58.843 回答