当我输入resize -s 50 50
终端输出时,终端内部的第50 行和第 50 列被更改。
但是在关闭窗口并重新打开终端后并没有反映这些变化。
我想一直以第 50 行和第 50 列的形式打开终端。
我知道这可以通过Edit->Profile Preference->General setting
更改行和列号使用终端来完成,但我想在 CLI 中执行此操作,因为我必须在一个大脚本中执行此操作。
我的 .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append …
Run Code Online (Sandbox Code Playgroud)