문제

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

도움이 되었습니까?

해결책

If you start your sensitive commands with a space, that command will not be added to history. Other than hacking the fish sources, I don't know of a mechanism to programmatically filter commands before they're appended to the history.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top