15 Dec
2014
15 Dec
'14
5:10 p.m.
On 14-12-15 10:54 AM, Adam Thompson wrote:
Nowadays, it should be reasonably safe to put this in /etc/profile:
eval $(/usr/bin/resize) && stty cols $COLUMNS rows $LINES
Er... make that: eval $(/local/path/to/resize) && [ -n "${COLUMNS}" -a "${COLUMNS}" -gt 0 -a -n "${LINES}" -a "${LINES}" -gt 0 ] && stty cols "${COLUMNS}" rows "${LINES}" Technically, stty accepts zero as a valid argument, but doing so would be useless. -- -Adam Thompson athompso@athompso.net Cell: +1 204 291-7950 Fax: +1 204 489-6515