From 2fe8420411115b36b9b4524761b4efc894ff6e14 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Mon, 18 Jul 2022 15:24:51 +0800 Subject: [PATCH] bash: tiocgwinsz: use stderr --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index a0bc77a..6326969 100644 --- a/.bashrc +++ b/.bashrc @@ -66,7 +66,7 @@ fi alias artisan="php8 artisan" alias artisan7="php7 artisan" alias artisan81="php81 artisan" -alias tiocgwinsz="python3 -c \"import struct, fcntl, termios; print('%d %d %d %d' % struct.unpack('4H', fcntl.ioctl(0, termios.TIOCGWINSZ, ' ')))\"" +alias tiocgwinsz="python3 -c \"import struct, fcntl, termios; print('%d %d %d %d' % struct.unpack('4H', fcntl.ioctl(2, termios.TIOCGWINSZ, ' ')))\"" alias dl="curl -OJLR --compressed" # functions -- 2.45.2