Gentoo Wiki


This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

Editing ~/.bashrc

When I'm writing a command bigger than the console size it wraps the text to the same line that I was writing on. How do I prevent this?


$echo "shopt -s checkwinsize" >> ~/.bashrc

$source ~/.bashrc

Making the change Global

Since this is so lame, you will probably want to add it for all users.

As root type:


-#echo "shopt -s checkwinsize" >> /etc/profile

-#source /etc/profile

Another cause of this problem involves improperly terminating the control codes in the bash prompt. I use "\[\e[0m\]" to terminate the effect of any strange codes after the prompt.


imported from the Gentoo Kernel and Hardware Wiki --Bmichaelsen 19:09, 14 Mar 2004 (EST) aaa

Retrieved from ""

Last modified: Sun, 26 Feb 2006 19:04:00 +0000 Hits: 11,940