Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The Non-Annoying Terminal Mini How-To & Fun with shopt
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Mon Nov 29, 2004 10:20 am    Post subject: Reply with quote

probably bash 3.0

that thing is all kinds of crazy.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Mistobaan
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 76

PostPosted: Mon Nov 29, 2004 10:45 am    Post subject: Reply with quote

Added to my .bashrc 8)
_________________
God is real until declared integer
Back to top
View user's profile Send private message
I1
n00b
n00b


Joined: 13 Sep 2004
Posts: 7

PostPosted: Tue Dec 14, 2004 8:33 pm    Post subject: Re: The Non-Annoying Terminal Mini How-To & Fun with sho Reply with quote

tomchuk wrote:

To make this system-wide add it to /etc/profile as root:
Code:
echo -e 'if [ "$SHELL" = "/bin/bash" ]\nthen\nshopt -s checkwinsize\nfi' >> /etc/profile



Yes, that did it!!!

Thanks tomchuk, this really annoyed the heck out of me!

Shouldn't someone put this in the standard /etc/profile in sys-apps/baselayout?
It took me quite a while to find this fix....

Thx,

Iwan.
Back to top
View user's profile Send private message
Shemite_Dog
n00b
n00b


Joined: 22 Jul 2003
Posts: 35
Location: Hailing from parts unknown!!

PostPosted: Wed Dec 15, 2004 5:43 am    Post subject: Reply with quote

Excellent, this had been annoying me for a long time :D 8)

Speaking of annoying, sometimes I get corrupted shell fonts after cat-ing a device driver. Everything turns into miscellaneous symbols. There is a way to restore things (I read this in a post a long while back) but I cannot for the life of me find this old post anymore or remember what was the solution. Does anyone know how to fix this?
_________________
"Mr. Mc Cluck Cluck!"
Back to top
View user's profile Send private message
ahubu
Guru
Guru


Joined: 16 Aug 2003
Posts: 400
Location: Groningen, The Netherlands

PostPosted: Wed Jan 19, 2005 10:00 pm    Post subject: Reply with quote

Shemite_Dog wrote:

Speaking of annoying, sometimes I get corrupted shell fonts after cat-ing a device driver. Everything turns into miscellaneous symbols. (...) Does anyone know how to fix this?


Yes, you just have to type this command in the garbled term:

Code:
reset


You have to trust your own typing skills, because you can't see what you type. :wink:
_________________
Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak.
-Unknown
Back to top
View user's profile Send private message
jmanning
n00b
n00b


Joined: 22 Oct 2003
Posts: 27

PostPosted: Wed Jan 19, 2005 10:32 pm    Post subject: Reply with quote

My new favorite is CDPATH

Code:
export CDPATH=".:~:/:/usr/portage:/my/src/dir/"


Then, from anywhere:
Code:

$ cd etc
/etc
$ cd .ssh
~/.ssh
$ cd app-shells
/usr/portage/app-shells


It even does completion: cd <TAB>
Back to top
View user's profile Send private message
ahubu
Guru
Guru


Joined: 16 Aug 2003
Posts: 400
Location: Groningen, The Netherlands

PostPosted: Wed Jan 19, 2005 10:57 pm    Post subject: Reply with quote

Wow CDPATH sure is mighty hefty, but confusing too... I am still dubbing whether I shall use it or not... this may introduce some serious human error increase... no more blindly directory-tab-completing ;)
_________________
Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak.
-Unknown
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Fri Feb 18, 2005 7:27 am    Post subject: Reply with quote

ahubu wrote:
Shemite_Dog wrote:

Speaking of annoying, sometimes I get corrupted shell fonts after cat-ing a device driver. Everything turns into miscellaneous symbols. (...) Does anyone know how to fix this?


Yes, you just have to type this command in the garbled term:

Code:
reset


You have to trust your own typing skills, because you can't see what you type. :wink:


Holy smokes. I've been rebooting to fix this for years :D
Back to top
View user's profile Send private message
keykeen
n00b
n00b


Joined: 31 Jan 2005
Posts: 44
Location: Athena

PostPosted: Sat Apr 02, 2005 5:50 am    Post subject: Reply with quote

Hi,i follow the step,
the bash can check the window size,
but the line still wraps in one line.
even if i start shell without run any app.
_________________
Nothing for happy.
Back to top
View user's profile Send private message
Sir No
Apprentice
Apprentice


Joined: 01 May 2005
Posts: 159
Location: Poland

PostPosted: Mon May 02, 2005 9:15 pm    Post subject: Reply with quote

ahubu wrote:
Yes, you just have to type this command in the garbled term:

Code:
reset


You have to trust your own typing skills, because you can't see what you type. :wink:


But if you happen to use a Linux installation where there's no reset command... Then you can try this:

Code:
echo -ne "\017"

Read the Linux Gazette issue 5, issue 6 and issue 7 to get a wider picture.
_________________
The geeks | Recommended Packages fOr Desktop & Server | Read BBCode Guide!
Back to top
View user's profile Send private message
bravecobra
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 130
Location: Planet Earth (sometimes)

PostPosted: Mon May 09, 2005 7:48 pm    Post subject: Reply with quote

Excellent post. Tnx
_________________
Brave Cobra
http://www.bravecobra.com
Back to top
View user's profile Send private message
raccoon
n00b
n00b


Joined: 28 Apr 2004
Posts: 36
Location: Wonderland

PostPosted: Tue Aug 23, 2005 9:23 pm    Post subject: Reply with quote

thebigslide wrote:
Holy smokes. I've been rebooting to fix this for years :D

Hah, I second that!
_________________
Adopt an unanswered post!
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Sat Dec 30, 2006 1:05 pm    Post subject: Reply with quote

Great post! :-)
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum