# HG changeset patch # User Steve Losh # Date 1678305041 18000 # Node ID ca4e18cd273a09e1bb1b1dbf8ae3aa2594239b0e # Parent b0cba88fe900ac6133e5bb5b69b4085382da6663 More diff -r b0cba88fe900 -r ca4e18cd273a bash_profile --- a/bash_profile Wed Feb 08 17:02:17 2023 -0500 +++ b/bash_profile Wed Mar 08 14:50:41 2023 -0500 @@ -111,3 +111,6 @@ export GPG_TTY export EDITOR=nvim + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm diff -r b0cba88fe900 -r ca4e18cd273a bin/hist --- a/bin/hist Wed Feb 08 17:02:17 2023 -0500 +++ b/bin/hist Wed Mar 08 14:50:41 2023 -0500 @@ -7,9 +7,14 @@ USAGE: $0 [OPTIONS] +Note that the output lines will be unsorted. For sorted output you can pipe the +output to sort: + + cat foo.dat | hist | sort -n -k3 + Options: - -h, --help display this help text and exit - -w N, --width N how wide the histograms should be + -h, --help display this help text and exit + -w COLS, --width COLS how wide the histogram bars should be " } @@ -49,7 +54,7 @@ bars = int(val * x * width) pads = width - bars - printf "%s ", val + printf "%s |", val for(i=0; i %n@%/%R%#%x%[%033[0m%] ' \timing \setenv PAGER less \setenv LESS -iS +set time zone 'etc/UTC';