[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] xterm & .bash_profile
>>>>> "Jose" == Jose L Gomez Dans <j.l.gomez-dans [at] sheffield.ac.uk> writes:
Jose> This is an easy one. Is there a simple way of
Jose> automagically instructing an xterm to read the .bash* login
Jose> scripts when it's launched (so that one can use aliases and
Jose> all sorts of tasty things)?
Read the bash man page for details. It's all rather complex, and
typically just doesn't work right. ;-)
You could put them in .bashrc, which gets read when you start an
xterm.
It generally isn't terribly harmful to put your aliases and stuff
somewhere and source them from both .bashrc and .bash_profile. Bash
does not read either of those files when invoked to run a script. In
general .bash_profile is only meaningful for things that should be
done exactly once and will screw up if done more than once. People
often source .bashrc from .bash_profile.
If you really want the login script, you can do what Craig suggests,
but this means your xterm bash will get written into utmp and will
appear on finger and all that.
>>>>> "Craig" == Craig Andrews <craig [at] fishbot.free-online.co.uk> writes:
Craig> type: xterm -login (I think)
Close. xterm -ls.
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.