Skip to content

Commit

Permalink
aliases.sh: allow pipe to work
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Traverse <florian.traverse@nearform.com>
  • Loading branch information
temsa committed May 2, 2022
1 parent 2c1a5c0 commit 4a06848
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-extra/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ xterm*)
case "$(type -p "$name".exe 2>/dev/null)" in
''|/usr/bin/*) continue;;
esac
alias $name="winpty $name.exe"
# The -Xallow-non-tty undocumented switch allows
# for pipe '|' to work as expected with those commands
alias $name="winpty -Xallow-non-tty $name.exe"
done
;;
esac

0 comments on commit 4a06848

Please sign in to comment.