You are not logged in.

#1 2004-11-08 01:06:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Issue with fortune-mod and .bashrc solved..

someone may find this useful. I was working with fortune-mod. I put the fortune-mod call into my .bashrc, so that every time I create a new shell, i get a new futurama quote.  8)

Anway, it was screwing up my scp activities, because it was generating output.

So, to avoid this, use the following in your .bashrc

if [ "$PS1" ]; then
  /usr/bin/fortune futurama
fi

similarly, if you want any textual output to appear everytime you create a shell, make sure to put it between the above if and fi.
of course, make sure you put this BEFORE you set your shell to something nice like:

PS1="\[\033[01;31m\](\[\033[00;37m\]\u@\h \W\[\033[01;31m\])\[\033[00m\]\$ "

hope this helps someone. It took me a little while to figure out what was going on.  roll[/code]


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#2 2005-04-28 02:13:10

surfer_rosa
Member
From: Glasgow, UK
Registered: 2005-02-21
Posts: 43

Re: Issue with fortune-mod and .bashrc solved..

I wasn't looking for this but now that i've found it it's great!

Cheers!

Offline

Board footer

Powered by FluxBB