Skip to content

Commit 7ac90f1

Browse files
author
Kenneth Reitz
committed
unbuffer all the things
1 parent 90cc426 commit 7ac90f1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

bin/utils

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
shopt -s extglob
22

3+
[ $(uname) == "Darwin" ] && SED_FLAG='-l' || SED_FLAG='-u'
4+
35
# Syntax sugar.
46
indent() {
57
RE="s/^/ /"
6-
[ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
8+
sed $SED_FLAG "$RE"
79
}
810

911
# Clean up pip output
1012
cleanup() {
11-
sed -l -e 's/\.\.\.\+/.../g' | sed -e '/already satisfied/Id' | sed -l -e '/Overwriting/Id' | sed -l -e '/python executable/Id' | sed -l -e '/no previously-included files/Id'
13+
sed $SED_FLAG -e 's/\.\.\.\+/.../g' | sed $SED_FLAG '/already satisfied/Id' | sed $SED_FLAG -e '/Overwriting/Id' | sed $SED_FLAG -e '/python executable/Id' | sed $SED_FLAG -e '/no previously-included files/Id'
1214
}
1315

1416
# Virtualenv wrapper.

0 commit comments

Comments
 (0)