Hallo Lutz, * Lutz Gehlen [19.07.02 21:18]:
Ich möchte gerne, daß beim login automatisch ein paar Umgebungsvariablen gesetzt werden, es gibt doch bestimmt ein Script, in das ich das einfügen kann, oder?
Es wäre nett, wenn Ihr mir auch die entsprechende Syntax sagen könntet, wenn ich zum Beispiel der Variablen $EDITOR den Wert emacs zuweisen möchte.
Kleiner Ausschnitt aus meiner ~/.bashrc: ,----[ .bashrc ]- | # Bash knows 3 diferent shells: normal shell, interactive shell, login shell. | # ~/.bashrc is read for interactive shells and ~/.profile is read for login | # shells. We just let ~/.profile also read ~/.bashrc and put everything in | # ~/.bashrc. | | test -z "$PROFILEREAD" && . /etc/profile | | | alias tftp='ftp home-up.t-online.de' | alias vid='lynx -editor=vim ~/homepage/diary.html' | alias selfhtml='netscape file:/usr/share/doc/packages/selfhtml/index.htm &' | alias w3='w3m -B' | alias ly='lynx -book' | alias cicq='centericq' | alias irc='BitchX' | alias ich='mutt -s "test" andreas.kneib@t-online.de' | alias mpg='plaympeg' | alias kup='sitecopy -o -u kolumne' | alias newart='vim ~/work/artikel/newart.txt' | alias rotai='sudo /usr/X11R6/bin/root-tail -i 1 -g 80x10+440+30 -font lucidasanstypewriter-12 /var/log/messages,green' | alias scv='cat /etc/services | grep' | alias sn='screen' | alias mbro='mbrola /opt/mbrola/txt2pho/data/de3' | alias unmount='cd;umount cdrom;eject' | export EDITOR=/usr/bin/vim | export NNTPSERVER=comone.local | export IRCSERVER=irc.fu-berlin.de | export DICTIONARY=german | export SLRNHOME=/home/andreas/.slrn | export BROWSER=netscape | export HTTP_PROXY=http://localhost:8000 | export HISTIGNORE="*PROMPT*:[ ]cd*:wget*" | | PS1="\[[31m\][\[[32m\]\u\[[31m\]]\[[32m\]\w > \[[39m\]" | | export LANG=de_DE.ISO-8859-15 `---- HTH, Andreas -- begin at the beginning, the King said gravely, and go on till you come to the end: then stop. [Lewis Carroll: Alice's Adventures in Wonderland]