4 ms·
[scott_s@local ~] history | wc -l 500 [scott_s@local ~] history | grep ssh | wc -l 191 Donated.
by scott_s 13y ago
[scott_s@local ~] history | wc -l
500
[scott_s@local ~] history | grep ssh | wc -l
191
Donated.
- switch007 13y agoGreat point. OpenSSH is rock solid and it and underpins many, many other projects and businesses. I don't think it's going too far to say that companies making heavy use of (i.e. profit from) OpenSSH are obligated to donate.
- pjjw 13y agomany do by employing the openssh maintainers to do that. it's the best way to contribute to openssh without contributing to theo.
- TkTech 13y agoGrep has a -c flag :) $ history | grep -c ssh 380 Donated.
- chongli 13y agoThe shell history really ought to have some sort of de-dupe feature. Too many lines of history get taken up by duplicate entries!
- nolok 13y agoIf you use bash, have a look at HISTIGNORE and HISTCONTROL.
- m0shen 13y agoUse HISTCONTROL=erasedups in your .bashrc http://www.gnu.org/software/bash/manual/bashref.html#index-HISTCONTROL http://www.gnu.org/software/bash/manual/bashref.html#index-H...
- zshhasoptions 13y agotry adding setopt HIST_SAVE_NO_DUPS to your .zshrc you could also have a look at HIST_FIND_NO_DUPS and HIST_IGNORE_ALL_DUPS (more options at http://zsh.sourceforge.net/Doc/Release/Options.html http://zsh.sourceforge.net/Doc/Release/Options.html ) If you still use bash, now is a good time to upgrade to zsh
- AdamN 13y ago'Upgrade' and a sourceforge link don't usually go together :-/ I'm a zsh user but am surprised that you guys are still using sourceforge instead of github.