ca4e18cd273a

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 08 Mar 2023 14:50:41 -0500
parents b0cba88fe900
children 82dfe29a2f63
branches/tags (none)
files bash_profile bin/hist fish/config.fish gitconfig lispwords psqlrc

Changes

--- 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
--- 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<bars; i++) printf "█"
         for(i=0; i<pads; i++) printf " "
         print key
--- a/fish/config.fish	Wed Feb 08 17:02:17 2023 -0500
+++ b/fish/config.fish	Wed Mar 08 14:50:41 2023 -0500
@@ -133,6 +133,16 @@
 set -g -x ANSIBLE_NOCOWS 1
 
 # }}}
+# Disable Spyware {{{
+
+set -g -x DO_NOT_TRACK 1
+set -g -x STRIPE_CLI_TELEMETRY_OPTOUT 1
+set -g -x GOTELEMETRY off
+set -g -x GOPROXY direct
+set -g -x VAGRANT_CHECKPOINT_DISABLE 1
+set -g -x CHECKPOINT_DISABLE 1
+
+# }}}
 # Python {{{
 
 set -g -x PIP_DOWNLOAD_CACHE "$HOME/.pip/cache"
@@ -144,8 +154,6 @@
 
 set -g -x GOPATH "$HOME/.go"
 set -g -x GOSUMDB off
-set -g -x GOTELEMETRY off
-set -g -x GOPROXY direct
 
 # }}}
 # R {{{
--- a/gitconfig	Wed Feb 08 17:02:17 2023 -0500
+++ b/gitconfig	Wed Mar 08 14:50:41 2023 -0500
@@ -16,6 +16,8 @@
     make-the-fucking-branch-point-at-the-fucking-commit = "!sh -c 'git checkout $1 && git reset --hard $2' -"
     mtfbpatfc                                           = "!sh -c 'git checkout $1 && git reset --hard $2' -"
 
+    reset-main-to-origin = "!sh -c 'git mtfbpatfc $(git mainbranch) origin/$(git mainbranch)' -"
+
     repoint = "!sh -c 'git update-ref HEAD $1 && git reset' -"
 
     root = rev-parse --show-toplevel
--- a/lispwords	Wed Feb 08 17:02:17 2023 -0500
+++ b/lispwords	Wed Mar 08 14:50:41 2023 -0500
@@ -91,7 +91,7 @@
 (1 gathering-vector)
 (1 multiple-value-bind*)
 (1 do-repeat do-range do-irange do-ring-buffer do-vector do-file)
-(1 timing)
+(1 timing profile-when)
 
 ; qtools
 (1 qtenumcase)
--- a/psqlrc	Wed Feb 08 17:02:17 2023 -0500
+++ b/psqlrc	Wed Mar 08 14:50:41 2023 -0500
@@ -5,9 +5,11 @@
 \pset pager on
 \pset null '∅'
 
+
 \set PROMPT1 '%[%033[1;34m%]%M:%> %n@%/%R%#%x%[%033[0m%] '
 \timing
 
 \setenv PAGER less
 \setenv LESS -iS
 
+set time zone 'etc/UTC';