github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/config/defaults/profile_preload.mx (about) 1 if { os darwin && %[ /usr/local/bin/brew ] -> f +x } then { 2 /bin/zsh -c 'eval "$(/usr/local/bin/brew shellenv)"; env' \ 3 -> grep -Ei "(HOMEBREW|PATH)" \ 4 -> prefix "export " \ 5 -> source 6 } 7 8 if { os darwin && %[ /opt/homebrew/bin/brew ] -> f +x } then { 9 /bin/zsh -c 'eval "$(/opt/homebrew/bin/brew shellenv)"; env' \ 10 -> grep -Ei "(HOMEBREW|PATH)" \ 11 -> prefix "export " \ 12 -> source 13 } 14 15 function define-force-tty-func (CMD: str) { 16 # Fixes programs which expect STDERR to be a TTY 17 if { which $CMD } then { 18 function $CMD "{ 19 # Wrapper script around `$CMD` 20 21 config set proc strict-arrays false 22 config set proc force-tty true 23 24 exec $CMD \@PARAMS 25 }" 26 27 trypipe <!null> { 28 summary $CMD ${man-summary $CMD} 29 } 30 } 31 }