Is there any command to change size of bash window ( for example to set size on 150x90) ? I dont want to change .profile file.
Description. Resize prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of xterm window from which the command is run.
$ man bash | grep -A1 '\-f file$' -f file True if file exists and is a regular file. $ Follow this answer to receive notifications.
How to reload your bash shell? in your ~/. bash_aliases file, you can simply use exec bash which will replace your current shell image with a new one, loading your configuration file and allowing you to use your updated aliases in your current terminal.
Some (but not many) terminals accept the ANSI escape sequence
\033[8;h;wt
(where \033
is the ASCII control character ESC
, and h
and w
are height and width in decimal).
For example, in XTerm (after allowing window ops through the Ctrl-RMB menu or the allowWindowOps
X resource),
$ printf '\033[8;40;100t'
will resize the window to 100x40 characters.
$ resize -s 90 150
see the file manual for more options.
$ man resize
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With