Gentoo Wiki ArchivesGentoo Wiki

TIP_linewrap_in_xterms

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?

Code:

$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:

Code:

-#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.

Reference

imported from the Gentoo Kernel and Hardware Wiki http://michaelsen.kicks-ass.net/moinmoin/moin.cgi/app_2dshells_2fbash --Bmichaelsen 19:09, 14 Mar 2004 (EST) aaa

Retrieved from "http://www.gentoo-wiki.info/TIP_linewrap_in_xterms"

Last modified: Mon, 27 Feb 2006 06:04:00 +1100 Hits: 12,797

Created by NickStallman.net, Luxury Homes Australia
Real estate agents should be using interactive floor plans and list their apartments, townhouses and units.