Skip to content

Instantly share code, notes, and snippets.

@c4710n
Created December 28, 2023 05:20
Show Gist options
  • Save c4710n/d3c0e32b61be8a046a3edb471fbfcc36 to your computer and use it in GitHub Desktop.
Save c4710n/d3c0e32b61be8a046a3edb471fbfcc36 to your computer and use it in GitHub Desktop.
A simple wrapper to avoid mixing compile logs and formatting output.
#!/usr/bin/env bash
#
# A simple wrapper to avoid mixing compile logs and formatting output.
# 1. redirect output to /dev/null
# 2. avoid reading input from /dev/stdin, which will be used by `mix format`
mix compile > /dev/null 2>&1 </dev/null
exec mix format $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment