Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Frage zu ~/.profile
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
wols
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 92
Location: Franken

PostPosted: Sun Nov 06, 2005 5:10 pm    Post subject: Frage zu ~/.profile Reply with quote

Hallo,
da ich mich nun zum GENTOO-User gemacht habe ;-) folgende Frage zu der ich noch nichts ergoogeln konnte:
Wie bekomme ich meine '~/.profile' nach dem Login ausgeführt?
'/etc/profile' wird normal abgearbeitet, muß ich da erst was einfügen um persönliche Profile zu ermöglichen?

Vielen Dank für jeden Tipp oder Link!
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Sun Nov 06, 2005 5:23 pm    Post subject: Reply with quote

mv ~/.profile ~/.bash_profile
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
wols
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 92
Location: Franken

PostPosted: Sun Nov 06, 2005 5:47 pm    Post subject: Reply with quote

Hallo und besten Dank,
funktioniert natürlich - das sind halt die kleinen Unterschiede.
Back to top
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Mon Nov 07, 2005 2:14 pm    Post subject: Reply with quote

richtig wäre
Code:

echo "source .profile" >> ~/.bashrc

dann kann man auch mal was in .profile ändern und merkt das auch in ner anderen shell.
Back to top
View user's profile Send private message
tassilo80
Guru
Guru


Joined: 26 Mar 2003
Posts: 346
Location: Koblenz, Germany

PostPosted: Mon Nov 14, 2005 11:31 am    Post subject: Reply with quote

schmutzfinger wrote:
richtig wäre
Code:

echo "source .profile" >> ~/.bashrc

dann kann man auch mal was in .profile ändern und merkt das auch in ner anderen shell.

Ganz genau! Ich selbst schreibe alle Einstellungen, die shellunabhängig sind in meine ~/.profile und hab als ersten Befehl meiner ~/.bashrc und ~/.zshrc
Code:
source ~/.profile
angegeben. Shellabhängiges Gedöns kann man dann dahinter in die jeweilige Datei schreiben.
Back to top
View user's profile Send private message
Cocker68
Apprentice
Apprentice


Joined: 16 Jan 2003
Posts: 227
Location: Germany

PostPosted: Wed Nov 16, 2005 3:40 pm    Post subject: Reply with quote

~/.profile wird automatisch und ohne ein source irgendwo ausgeführt, wenn keine ~/.bash_profile existiert.

Aus diesem Grund gibt es bei mir keine ~/.bash_profile. Alles generelle schreibe ich in ~/.profile, und alles bash-spezifische in ~/.bashrc.

Der Sinn der ~/.bash_profile hat sich mir seit jeher entzogen.

- Cocker :wq
Back to top
View user's profile Send private message
tassilo80
Guru
Guru


Joined: 26 Mar 2003
Posts: 346
Location: Koblenz, Germany

PostPosted: Wed Nov 16, 2005 4:00 pm    Post subject: Reply with quote

Cocker68 wrote:
~/.profile wird automatisch und ohne ein source irgendwo ausgeführt, wenn keine ~/.bash_profile existiert.

Tatsächlich. Hab das blöde Ding direkt gelöscht. Allerdings macht das nur die bash so. Ich benutze aber normalerweise die ZSH, die das nicht automatisch macht. Also kann man das source aus der .bashrc, aber nicht der .zshrc rausnehmen.

Gruß,
Tassilo
Back to top
View user's profile Send private message
wols
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 92
Location: Franken

PostPosted: Mon Nov 28, 2005 6:56 pm    Post subject: Reply with quote

Hallo,
danke für alle Kommentare, ich habe jetzt auch (wie früher) nur noch ~/.profile und es geht wie gewünscht :-)
_________________
Danke und weiter so!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
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