Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from crclark96/ginh

ginh is not a histogram: visually evaluate your shell usage patterns

License

colbybanbury/ginh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ginh.sh

Codacy Badge

ginh is not a histogram

usage: ./ginh.sh [-h] [-n entries] [-f hist_file] [-c chart_char] [-l line_len]

ginh.sh generates a bar chart of your most frequently used shell commands, according to your shell's history file (or another file of your choosing, using the -f flag).

example:

entries=15, file=/Users/crclark/.bash_history, char==, len=78
-------------------------------------------------------------------------------
      git =================================================================  40
      cat ==================================  21
      vim =========================  15
       ls ====================  12
./ginh.sh ===============  9
       cd ============  7
       mv ==========  6
      sed =========  5
     echo =========  5
       rm =======  4
     find =======  4
  history =====  3
   export ====  2
      env ====  2
 diskutil ====  2
-------------------------------------------------------------------------------

help

if you don't see your graph updating after running a few commands, this is because the working history is stored in memory, and not the history file. running history -a should update the history file and you'll be good to go!

About

ginh is not a histogram: visually evaluate your shell usage patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%