diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-05-08 06:17:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-05-08 06:17:09 +0200 |
commit | 3ed997195b7eccf1438311dc332d93a8dce06d19 (patch) | |
tree | ef491e44b97bc4a04696d05227059b844554f166 | |
parent | e3d582901bc24a0d713796578701785074571a18 (diff) | |
download | ponysay-3ed997195b7eccf1438311dc332d93a8dce06d19.tar.gz ponysay-3ed997195b7eccf1438311dc332d93a8dce06d19.tar.bz2 ponysay-3ed997195b7eccf1438311dc332d93a8dce06d19.zip |
much better
-rwxr-xr-x | ponysay | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -50,10 +50,13 @@ say() { export PERL_UNICODE=S if [ "$TERM" = "linux" ]; then - echo -ne '\ec' + echo -ne '\ec' fi - exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (exec ponysaytruncater `tput cols || echo 0` 2>/dev/null || ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || cat) + exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || + cat) } while getopts f:W:lhv OPT |