Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env sh
- # Create a new history file with simple, common commands removed
- grep -v -E '^(exit|cd ..|git pull|git push|git status|git diff|git log|git checkout master|emacs .|rspec|rails c|bundle install|ls|rvm info|rails s|rake db:migrate|open .|tmux)\s*$' ~/.bash_history >> ~/.bash_history_cleaned
- # Find top candidates for a 'grep -v' command of your own:
- sort ~/.bash_history_cleaned | uniq --count | sort -rn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement