Skip to content

Instantly share code, notes, and snippets.

View mcint's full-sized avatar

Loren McIntyre mcint

  • Berkeley/San Francisco, CA, USA
  • 21:32 (UTC -07:00)
View GitHub Profile
[[ "$PATH" =~ "%" ]] PATH=(for SUB in `echo $PATH | tr : '\n'`; do [[ "$SUB" =~ "%" ]] && (echo "$(printenv `echo $SUB|cut -d% -f2`)$(echo $SUB|cut -d% -f3)" | sed 's_C:_/c_g' | sed 's_\\_/_g') || echo $SUB; done) | tr '\n' : | sed 's_:$__'