~xdavidwu/dotfiles

3b188135f62e31a9c666d6a49627bc945f097995 — xdavidwu 2 years ago c2fcedd
imgcat_max_pixels: use fixed IFS
1 files changed, 1 insertions(+), 1 deletions(-)

M .bashrc
M .bashrc => .bashrc +1 -1
@@ 99,7 99,7 @@ sleepto() {

imgcat_max_pixels() {
	tiocgwinsz | (
		read MROW MCOL MX MY
		IFS=' ' read MROW MCOL MX MY
		echo ${MX}x$(($MY / $MROW * $(($MROW - 1))))
	)
}