A Nushell module to analyze the command frequencies in Nushell history, generate cool graphs, benchmark statistics with other users, and generate a file with statistics to share with the community.
Aggregated results, produced by the aggregate-submissions command can be found in the csv file
The history of nushell commands by releases can be found in this csv
> git clone https://github.com/nushell-prophet/nu-history-tools; cd nu-history-tools; use nu-history-toolsThe output of analyze-history contains a lot of informational messages (as you can see in the next block).
These informational messages can be silenced using the --quiet flag.
use nu-history-tools; let $res = nu-history-tools analyze-history; $res | first 10Output:
*******************************************************************************
nu-commands-frequency-stats v0.2.1
*******************************************************************************
Your history is in sqlite format and will be used for analysis. Additionally,
you have history in txt format, which consists of 651 lines. It will be used
for analysis as well.
Your stats have been saved to
/Users/user/git/nu-history-tools/stats_submissions/v2+WriteYourNick.csv.
Please consider donating them to the original repository
https://github.com/nushell-prophet/nu-history-tools/tree/main/stats_submissions
.
*******************************************************************************
Aggregated stats of other users for benchmarks.
They will be displayed in the final table.
*******************************************************************************
freq_by_user (frequency norm by user) includes stats from all users. You can
pick some of them by providing the --pick_users flag: stats --pick_users or
aggregate-submissions --pick_users.
โญโ#โโโฌโโโโโโuserโโโโโโโฌโcommand_entriesโโฎ
โ 0 โ maximuvarov โ 118375 โ
โ 1 โ vinlet โ 33817 โ
โ 2 โ fdncred โ 18500 โ
โ 3 โ nu_scripts โ 12459 โ
โ 4 โ kubouch โ 10170 โ
โ 5 โ ErichDonGubler โ 10101 โ
โ 6 โ chtenb โ 9376 โ
โ 7 โ shinyzero0 โ 9247 โ
โ 8 โ dazfuller โ 7354 โ
โ 9 โ cptpiepmatz โ 4199 โ
โ 10 โ zjp โ 2764 โ
โ 11 โ sholderbach โ 2114 โ
โ 12 โ horasal โ 1373 โ
โ 13 โ nu_std โ 1014 โ
โ 14 โ pingiun โ 894 โ
โ 15 โ nicokosi โ 255 โ
โฐโ#โโโดโโโโโโuserโโโโโโโดโcommand_entriesโโฏ
*******************************************************************************
Resulting table
*******************************************************************************
A note about some columns:
- freq - indicates the overall frequency of use of the given command for the
currently analyzed source
- freq_norm - represents the overall frequency normalized
- freq_norm_bar - shows the overall frequency normalized in a bar chart format
- timeline - displays the dynamics, indicating when the command was used
throughout your history
- importance - calculated as the geometric mean of the number of users who
used this command and the average normalized frequency
- freq_by_user (frequency norm by user) - each bar in the sparkline column
represents one user (order is shown in the table above).
โญโ#โโฌโโโโnameโโโโโโฌโโcategoryโโโฌโfreqโโฌโfreq_normโโฌโfreq_norm_barโโฌโโtimelineโโโโฌโimportanceโโฌโimportance_bโโฌโโfreq_by_userโโโโฎ
โ 0 โ get โ filters โ 7971 โ 1.00 โ โโโโโโโโโโ โ โโโ
โโโโโโโโ โ 0.86 โ โโโโโโโโโโโ โ โโโ
โโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 1 โ open โ filesystem โ 7382 โ 0.93 โ โโโโโโโโโโ โ โ
โโโโโโ
โโโโ โ 0.82 โ โโโโโโโโโโ โ โโโโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 2 โ each โ filters โ 4741 โ 0.59 โ โโโโโโ โ โโโโ
โโโ
โโ
โ
โ โ 0.59 โ โโโโโโโ โ โ
โโโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 3 โ let โ core โ 4741 โ 0.59 โ โโโโโโ โ โโโ
โโ
โโโ
โโ
โ โ 0.66 โ โโโโโโโโ โ โ
โโโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 4 โ ls โ filesystem โ 4242 โ 0.53 โ โโโโโโ โ โโโ
โโ
โโ
โโโโ โ 1.00 โ โโโโโโโโโโโโ โ โ
โโโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 5 โ where โ filters โ 4030 โ 0.51 โ โโโโโ โ โ
โโโโโโโโโโ โ 0.53 โ โโโโโโโ โ โโโ
โโ
โโโโโโโ
โโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 6 โ upsert โ filters โ 2809 โ 0.35 โ โโโโ โ โ
โโโโ
โโโโโโ โ 0.17 โ โโโ โ โโ
โโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 7 โ first โ filters โ 2733 โ 0.34 โ โโโโ โ โโโ
โโโโโโโโ โ 0.28 โ โโโโ โ โโโโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 8 โ polars โ dataframe โ 2537 โ 0.32 โ โโโโ โ โโโโโโโโโโโ โ 0.07 โ โ โ โโโโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โ 9 โ str replace โ strings โ 2465 โ 0.31 โ โโโโ โ โโ
โ
โ
โโโโโ
โโ โ 0.21 โ โโโ โ โโโโโโโโโโโโโโโ โ
โ โ โ โ โ โ โ โ โ โ โ โ
โฐโ#โโดโโโโnameโโโโโโดโโcategoryโโโดโfreqโโดโfreq_normโโดโfreq_norm_barโโดโโtimelineโโโโดโimportanceโโดโimportance_bโโดโโfreq_by_userโโโโฏ
> use nu-history-tools; let $res2 = nu-history-tools aggregate-submissions --quiet; $res2 | first 5
โญโ#โโฌโnameโโฌโโcategoryโโโฌโfreq_overallโโฌโusers_countโโฌโf_n_per_userโโฌโโโfreq_by_userโโโโฌโimportanceโโฌโimportance_bโโฎ
โ 0 โ ls โ filesystem โ 11942 โ 14 โ 0.59 โ โ
โโโโโโโโโโโโโโโ โ 1.00 โ โโโโโโโโโโโโ โ
โ 1 โ cd โ filesystem โ 8352 โ 15 โ 0.43 โ โโโโโโโโโโโโโโโโ โ 0.88 โ โโโโโโโโโโโ โ
โ 2 โ get โ filters โ 14406 โ 16 โ 0.38 โ โโโ
โโโโโโโโโโโโโ โ 0.86 โ โโโโโโโโโโโ โ
โ 3 โ open โ filesystem โ 13691 โ 15 โ 0.37 โ โโโโโโโโโโโโโโโโ โ 0.82 โ โโโโโโโโโโ โ
โ 4 โ help โ core โ 3432 โ 14 โ 0.30 โ โโโ
โโโโโโโโโโโโโ โ 0.70 โ โโโโโโโโโ โ
โฐโ#โโดโnameโโดโโcategoryโโโดโfreq_overallโโดโusers_countโโดโf_n_per_userโโดโโโfreq_by_userโโโโดโimportanceโโดโimportance_bโโฏThe full data you can find in this csv file.
โญโโ#โโโฌโโโโโโโโnameโโโโโโโโโฌโโโcategoryโโโโฌโimportanceโโฌโimportance_bโโฎ
โ 0 โ ls โ filesystem โ 1.00 โ โโโโโโโโโโโโ โ
โ 1 โ cd โ filesystem โ 0.87 โ โโโโโโโโโโโ โ
โ 2 โ get โ filters โ 0.83 โ โโโโโโโโโโ โ
โ 3 โ open โ filesystem โ 0.79 โ โโโโโโโโโโ โ
โ 4 โ help โ core โ 0.69 โ โโโโโโโโโ โ
โ 5 โ let โ core โ 0.64 โ โโโโโโโโ โ
โ 6 โ each โ filters โ 0.57 โ โโโโโโโ โ
โ 7 โ config โ env โ 0.51 โ โโโโโโโ โ
โ 8 โ where โ filters โ 0.51 โ โโโโโโโ โ
โ 9 โ lines โ filters โ 0.45 โ โโโโโโ โ
โ 10 โ rm โ filesystem โ 0.42 โ โโโโโ โ
โ 11 โ source โ core โ 0.41 โ โโโโโ โ
โ 12 โ echo โ core โ 0.40 โ โโโโโ โ
โ 13 โ if โ core โ 0.38 โ โโโโโ โ
โ 14 โ find โ filters โ 0.33 โ โโโโ โ
โ 15 โ print โ strings โ 0.32 โ โโโโ โ
โ 16 โ table โ viewers โ 0.31 โ โโโโ โ
โ 17 โ ansi โ platform โ 0.30 โ โโโโ โ
โ 18 โ sort-by โ filters โ 0.30 โ โโโโ โ
โ 19 โ exit โ shells โ 0.29 โ โโโโ โ
โ 20 โ update โ filters โ 0.29 โ โโโโ โ
โ 21 โ def โ core โ 0.29 โ โโโโ โ
โ 22 โ select โ filters โ 0.29 โ โโโโ โ
โ 23 โ debug โ debug โ 0.28 โ โโโโ โ
โ 24 โ do โ core โ 0.27 โ โโโโ โ
โ 25 โ which โ system โ 0.27 โ โโโโ โ
โ 26 โ save โ filesystem โ 0.27 โ โโโโ โ
โ 27 โ from json โ formats โ 0.27 โ โโโโ โ
โ 28 โ first โ filters โ 0.27 โ โโโโ โ
โ 29 โ str join โ strings โ 0.26 โ โโโโ โ
โ 30 โ flatten โ filters โ 0.24 โ โโโ โ
โ 31 โ length โ filters โ 0.23 โ โโโ โ
โ 32 โ use โ core โ 0.23 โ โโโ โ
โ 33 โ sys โ system โ 0.22 โ โโโ โ
โ 34 โ to text โ formats โ 0.22 โ โโโ โ
โ 35 โ version โ core โ 0.22 โ โโโ โ
โ 36 โ all โ filters โ 0.21 โ โโโ โ
โ 37 โ let-env โ removed โ 0.21 โ โโโ โ
โ 38 โ describe โ core โ 0.21 โ โโโ โ
โ 39 โ transpose โ filters โ 0.21 โ โโโ โ
โ 40 โ is-empty โ filters โ 0.20 โ โโโ โ
โ 41 โ ps โ system โ 0.20 โ โโโ โ
โ 42 โ parse โ strings โ 0.20 โ โโโ โ
โ 43 โ str replace โ strings โ 0.20 โ โโโ โ
โ 44 โ mkdir โ filesystem โ 0.19 โ โโโ โ
โ 45 โ mv โ filesystem โ 0.19 โ โโโ โ
โ 46 โ char โ strings โ 0.19 โ โโโ โ
โ 47 โ last โ filters โ 0.19 โ โโโ โ
โ 48 โ http get โ network โ 0.18 โ โโโ โ
โ 49 โ from โ formats โ 0.17 โ โโ โ
โ 50 โ upsert โ filters โ 0.17 โ โโ โ
โ 51 โ for โ core โ 0.16 โ โโ โ
โ 52 โ export def โ core โ 0.16 โ โโ โ
โ 53 โ default โ filters โ 0.16 โ โโ โ
โ 54 โ split row โ strings โ 0.16 โ โโ โ
โ 55 โ any โ filters โ 0.15 โ โโ โ
โ 56 โ encode โ strings โ 0.15 โ โโ โ
โ 57 โ metadata โ debug โ 0.15 โ โโ โ
โ 58 โ try โ core โ 0.15 โ โโ โ
โ 59 โ filter โ filters โ 0.15 โ โโ โ
โ 60 โ complete โ system โ 0.15 โ โโ โ
โ 61 โ merge โ filters โ 0.15 โ โโ โ
โ 62 โ append โ filters โ 0.15 โ โโ โ
โ 63 โ history โ history โ 0.15 โ โโ โ
โ 64 โ help commands โ core โ 0.14 โ โโ โ
โ 65 โ skip โ filters โ 0.14 โ โโ โ
โ 66 โ clear โ platform โ 0.14 โ โโ โ
โ 67 โ timeit โ debug โ 0.14 โ โโ โ
โ 68 โ insert โ filters โ 0.14 โ โโ โ
โ 69 โ into int โ conversions โ 0.14 โ โโ โ
โ 70 โ take โ filters โ 0.13 โ โโ โ
โ 71 โ explore โ viewers โ 0.13 โ โโ โ
โ 72 โ to json โ formats โ 0.13 โ โโ โ
โ 73 โ cp โ filesystem โ 0.13 โ โโ โ
โ 74 โ str trim โ strings โ 0.13 โ โโ โ
โ 75 โ group-by โ filters โ 0.13 โ โโ โ
โ 76 โ rename โ filters โ 0.13 โ โโ โ
โ 77 โ reject โ filters โ 0.13 โ โโ โ
โ 78 โ mut โ core โ 0.12 โ โโ โ
โ 79 โ columns โ filters โ 0.12 โ โโ โ
โ 80 โ uniq โ filters โ 0.12 โ โโ โ
โ 81 โ date now โ date โ 0.12 โ โโ โ
โ 82 โ overlay โ core โ 0.11 โ โโ โ
โ 83 โ decode โ strings โ 0.11 โ โโ โ
โ 84 โ input โ platform โ 0.11 โ โโ โ
โ 85 โ into โ conversions โ 0.11 โ โโ โ
โ 86 โ from csv โ formats โ 0.11 โ โโ โ
โ 87 โ to โ formats โ 0.11 โ โโ โ
โ 88 โ path expand โ path โ 0.11 โ โโ โ
โ 89 โ fill โ conversions โ 0.11 โ โโ โ
โ 90 โ fmt โ conversions โ 0.10 โ โโ โ
โ 91 โ error make โ core โ 0.10 โ โโ โ
โ 92 โ prepend โ filters โ 0.10 โ โโ โ
โ 93 โ path join โ path โ 0.10 โ โโ โ
โ 94 โ into datetime โ conversions โ 0.10 โ โโ โ
โ 95 โ str substring โ strings โ 0.10 โ โโ โ
โ 96 โ run-external โ system โ 0.09 โ โโ โ
โ 97 โ ignore โ core โ 0.09 โ โโ โ
โ 98 โ from tsv โ formats โ 0.09 โ โโ โ
โ 99 โ start โ filesystem โ 0.09 โ โ โ
โ 100 โ to nuon โ formats โ 0.09 โ โโ โ
โ 101 โ reverse โ filters โ 0.09 โ โโ โ
โ 102 โ reduce โ filters โ 0.09 โ โโ โ
โ 103 โ glob โ filesystem โ 0.09 โ โโ โ
โ 104 โ alias โ core โ 0.08 โ โ โ
โ 105 โ split column โ strings โ 0.08 โ โ โ
โ 106 โ str starts-with โ strings โ 0.08 โ โ โ
โ 107 โ commandline โ core โ 0.08 โ โ โ
โ 108 โ into record โ conversions โ 0.08 โ โ โ
โ 109 โ sleep โ platform โ 0.08 โ โ โ
โ 110 โ path parse โ path โ 0.08 โ โ โ
โ 111 โ drop โ filters โ 0.08 โ โ โ
โ 112 โ from xml โ formats โ 0.07 โ โ โ
โ 113 โ du โ filesystem โ 0.07 โ โ โ
โ 114 โ return โ core โ 0.07 โ โ โ
โ 115 โ format โ strings โ 0.07 โ โ โ
โ 116 โ str contains โ strings โ 0.07 โ โ โ
โ 117 โ into binary โ conversions โ 0.07 โ โ โ
โ 118 โ zip โ filters โ 0.07 โ โ โ
โ 119 โ items โ filters โ 0.07 โ โ โ
โ 120 โ seq โ generators โ 0.07 โ โ โ
โ 121 โ into string โ conversions โ 0.07 โ โ โ
โ 122 โ enumerate โ filters โ 0.07 โ โ โ
โ 123 โ term size โ platform โ 0.07 โ โ โ
โ 124 โ config nu โ env โ 0.07 โ โ โ
โ 125 โ view โ debug โ 0.06 โ โ โ
โ 126 โ exec โ system โ 0.06 โ โ โ
โ 127 โ from nuon โ formats โ 0.06 โ โ โ
โ 128 โ collect โ filters โ 0.06 โ โ โ
โ 129 โ to md โ formats โ 0.06 โ โ โ
โ 130 โ str length โ strings โ 0.06 โ โ โ
โ 131 โ split chars โ strings โ 0.06 โ โ โ
โ 132 โ sort โ filters โ 0.06 โ โ โ
โ 133 โ math sum โ math โ 0.06 โ โ โ
โ 134 โ values โ filters โ 0.06 โ โ โ
โ 135 โ format date โ strings โ 0.06 โ โ โ
โ 136 โ wrap โ filters โ 0.06 โ โ โ
โ 137 โ overlay use โ core โ 0.06 โ โ โ
โ 138 โ const โ core โ 0.05 โ โ โ
โ 139 โ export โ core โ 0.05 โ โ โ
โ 140 โ module โ core โ 0.05 โ โ โ
โ 141 โ math avg โ math โ 0.05 โ โ โ
โ 142 โ into duration โ conversions โ 0.05 โ โ โ
โ 143 โ match โ core โ 0.05 โ โ โ
โ 144 โ path split โ path โ 0.05 โ โ โ
โ 145 โ to csv โ formats โ 0.05 โ โ โ
โ 146 โ nu-highlight โ strings โ 0.05 โ โ โ
โ 147 โ view source โ debug โ 0.05 โ โ โ
โ 148 โ par-each โ filters โ 0.05 โ โ โ
โ 149 โ to yaml โ formats โ 0.05 โ โ โ
โ 150 โ polars โ dataframe โ 0.05 โ โ โ
โ 151 โ export module โ core โ 0.04 โ โ โ
โ 152 โ loop โ core โ 0.04 โ โ โ
โ 153 โ from ssv โ formats โ 0.04 โ โ โ
โ 154 โ while โ core โ 0.04 โ โ โ
โ 155 โ keybindings โ platform โ 0.04 โ โ โ
โ 156 โ group โ filters โ 0.04 โ โ โ
โ 157 โ histogram โ chart โ 0.04 โ โ โ
โ 158 โ path dirname โ path โ 0.04 โ โ โ
โ 159 โ path relative-to โ path โ 0.04 โ โ โ
โ 160 โ touch โ filesystem โ 0.04 โ โ โ
โ 161 โ overlay list โ core โ 0.04 โ โ โ
โ 162 โ str โ strings โ 0.04 โ โ โ
โ 163 โ date format โ removed โ 0.04 โ โ โ
โ 164 โ scope commands โ core โ 0.04 โ โ โ
โ 165 โ path exists โ path โ 0.04 โ โ โ
โ 166 โ inspect โ debug โ 0.04 โ โ โ
โ 167 โ window โ filters โ 0.04 โ โ โ
โ 168 โ path basename โ path โ 0.04 โ โ โ
โ 169 โ ansi strip โ platform โ 0.04 โ โ โ
โ 170 โ join โ filters โ 0.04 โ โ โ
โ 171 โ from yaml โ formats โ 0.04 โ โ โ
โ 172 โ break โ core โ 0.03 โ โ โ
โ 173 โ with-env โ env โ 0.03 โ โ โ
โ 174 โ schema โ database โ 0.03 โ โ โ
โ 175 โ date โ date โ 0.03 โ โ โ
โ 176 โ detect columns โ strings โ 0.03 โ โ โ
โ 177 โ tutor โ misc โ 0.03 โ โ โ
โ 178 โ hide โ core โ 0.03 โ โ โ
โ 179 โ each while โ filters โ 0.03 โ โ โ
โ 180 โ math abs โ math โ 0.03 โ โ โ
โ 181 โ export-env โ env โ 0.03 โ โ โ
โ 182 โ path type โ path โ 0.03 โ โ โ
โ 183 โ keybindings listen โ platform โ 0.03 โ โ โ
โ 184 โ to tsv โ formats โ 0.03 โ โ โ
โ 185 โ move โ filters โ 0.03 โ โ โ
โ 186 โ config env โ env โ 0.03 โ โ โ
โ 187 โ into float โ conversions โ 0.03 โ โ โ
โ 188 โ skip until โ filters โ 0.03 โ โ โ
โ 189 โ scope โ core โ 0.02 โ โ โ
โ 190 โ str downcase โ strings โ 0.02 โ โ โ
โ 191 โ load-env โ filesystem โ 0.02 โ โ โ
โ 192 โ take while โ filters โ 0.02 โ โ โ
โ 193 โ regex โ experimental โ 0.02 โ โ โ
โ 194 โ split words โ strings โ 0.02 โ โ โ
โ 195 โ date to-timezone โ date โ 0.02 โ โ โ
โ 196 โ decode base64 โ hash โ 0.02 โ โ โ
โ 197 โ date to-record โ date โ 0.02 โ โ โ
โ 198 โ is-not-empty โ filters โ 0.02 โ โ โ
โ 199 โ view files โ debug โ 0.02 โ โ โ
โฐโโ#โโโดโโโโโโโโnameโโโโโโโโโดโโโcategoryโโโโดโimportanceโโดโimportance_bโโฏ
