ginh is not a histogram: visually evaluate your shell usage patterns
Branch: master
Clone or download
Latest commit b31f697 Feb 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE add feature template Jan 28, 2019
LICENSE Create LICENSE Jan 31, 2019
ginh.sh
pre-commit fix pre-commit again Jan 31, 2019
readme.md Added some dope README stuff Feb 18, 2019

readme.md

ginh.sh

Codacy Badge no. no.

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!