Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
This regular expression allows to remove from .zhs_history all the "trashy" commands that are used commonly and reduce the size of the file
: \d+:0;(gd|gst|gaa|ga|gc|irb|git reset|git stash|newzsh|glg|gb|git push|git init|grm|gl|mc|top|git rebase|ember|rake|rackup|git rm|sensors|rails s|tree|ls|ember install|rubocop|reboot|pry|gitg|gitk|man|unity|bower install|npm install|bundle install|bundle update|git pull|node|jekyll|kill|bin\/console|tmux|la|cd ~/code|nvm|fm|ruby).*\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment