Skip to content

Commit 2d8eaff

Browse files
committed
aliases.sh: allow shell pipe to work
Signed-off-by: Florian Traverse <[email protected]>
1 parent 2c1a5c0 commit 2d8eaff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-extra/aliases.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ xterm*)
1515
case "$(type -p "$name".exe 2>/dev/null)" in
1616
''|/usr/bin/*) continue;;
1717
esac
18-
alias $name="winpty $name.exe"
18+
# The -Xallow-non-tty undocumented switch allows
19+
# for pipe '|' to work as expected with those commands
20+
alias $name="winpty -Xallow-non-tty $name.exe"
1921
done
2022
;;
2123
esac

0 commit comments

Comments
 (0)