mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
13 lines
207 B
Bash
13 lines
207 B
Bash
#!/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/^/ /"
|
|
}
|