Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/env sh
  2. # Create a new history file with simple, common commands removed
  3. 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
  4. # Find top candidates for a 'grep -v' command of your own:
  5. sort ~/.bash_history_cleaned | uniq --count | sort -rn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement