`ginh` lets you visually evaluate your bash usage patterns
source link: https://www.tuicool.com/articles/hit/rmYrI3v
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
ginh.sh
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!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK