This commit is contained in:
2019-09-15 09:42:16 -04:00
parent a847561beb
commit ac66581088
6 changed files with 87 additions and 18 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [ "$(uname)" == Darwin ]; then
bashf-sed() { command sed -l "$@"; }
else
bashf-sed() { command sed -u "$@"; }
fi
# Syntax sugar.
bashf-indent() {
bashf-sed "s/^/ /"
}