我有一个在我的个人终端和CI环境中运行的shell脚本.在CI环境中,python调用确定shell高度/宽度返回有趣的值.
我想做一些事情的效果:
if (I am running in shell context) determine height/width of terminal else don't fi
如何在bash脚本中表达这种情况?
bash terminal
bash ×1
terminal ×1