(Linux) (zsh) .zprofile wird nicht geladen
    
Julian von Mendel
    
    
      
    
  - software
 
Hi,
ich hab hier ein frisch installiertes Mandrake 10.1 mit zsh. Die zsh lädt weder die ~/.bash_profile noch die ~/.zprofile, wie ich es von meinem alten System gewohnt war. Beide sind als ausführbar gekennzeichnet, ich habe Zugriffsrechte und wenn ich sie manuell aufrufe, gibt es keine Probleme. Wo liegt mein Fehler?
Danke
Julian
hallo Julian,
Beide sind als ausführbar gekennzeichnet
Seit wann sind Profildateien Programme und ausführbar?
Grüße aus Berlin
Christoph S.
hi!
Beide sind als ausführbar gekennzeichnet
Seit wann sind Profildateien Programme und ausführbar?
Offensichtlich erfüllen sie die Definition eines Shellskripts und daher sind
es ganz eindeutig Programme. Ausführbar müssen sie allerdings wirklich nicht
sein, da sie in dem Fall ja sowieso schon von der entsprechenden Shell
geladen und interpretiert werden.
bye, Frank!
Moin!
Hi,
ich hab hier ein frisch installiertes Mandrake 10.1 mit zsh. Die zsh lädt weder die ~/.bash_profile noch die ~/.zprofile, wie ich es von meinem alten System gewohnt war. Beide sind als ausführbar gekennzeichnet, ich habe Zugriffsrechte und wenn ich sie manuell aufrufe, gibt es keine Probleme. Wo liegt mein Fehler?
man zsh: [Ausschnitt]
TARTUP/SHUTDOWN FILES
       Commands  are  first read from /etc/zshenv; this cannot be
       overridden.  Subsequent behaviour is modified by  the  RCS
       and  GLOBAL_RCS  options;  the  former affects all startup
       files, while the second only affects  those  in  the  /etc
       directory.   If  one of the options is unset at any point,
       any subsequent startup file(s) of the  corresponding  type
       will  not  be  read.   It  is  also possible for a file in
       $ZDOTDIR to re-enable GLOBAL_RCS. Both RCS and  GLOBAL_RCS
       are set by default.
Commands  are  then  read  from  $ZDOTDIR/.zshenv.  If the
       shell is a login shell, commands are read from  /etc/zpro
       file  and  then $ZDOTDIR/.zprofile.  Then, if the shell is
       interactive, commands are read from  /etc/zshrc  and  then
       $ZDOTDIR/.zshrc.   Finally, if the shell is a login shell,
       /etc/zlogin and $ZDOTDIR/.zlogin are read.
When a login shell exits, the files $ZDOTDIR/.zlogout  and
       then  /etc/zlogout  are read.  This happens with either an
       explicit exit via the  exit  or  logout  commands,  or  an
       implicit  exit  by  reading end-of-file from the terminal.
       However, if the shell terminates due to  exec'ing  another
       process,  the  logout  files are not read.  These are also
       affected by the RCS and  GLOBAL_RCS  options.   Note  also
       that  the  RCS option affects the saving of history files,
       i.e. if RCS is unset when the shell exits, no history file
       will be saved.
If  ZDOTDIR  is  unset, HOME is used instead.  Those files
       listed above as being in /etc may be in another directory,
       depending on the installation.
Was steht in $ZDOTDIR? evetuell musst schauen, dass Du diese Variable auf ~ setzt.
MFFG (Mit freundlich- friedfertigem Grinsen)
fastix®
Hi fastix,
jvm@m13 ~ $ echo $ZDOTDIR
jvm@m13 ~ $ export ZDOTDIR=/home/jvm
jvm@m13 ~ $ zsh
jvm@m13 ~ $ exit
d. h. die Variable war leer, wenn ich sie setze, ändert das aber auch nichts?! Oder muss ich die Variable irgendwie anders setzten? Meine .zprofile gibt mit echo eine Meldung aus, d. h. wenn sie geladen wird, fällt das sofort auf. Ich verwende das gleiche home-Verzeichnis wie beim alten System, wo die Meldung noch erschien.
Schöne Grüße
Julian
Moin!
Commands  are  then  read  from  $ZDOTDIR/.zshenv.  If the
       shell is a login shell, commands are read from  /etc/zpro
       file  and  then $ZDOTDIR/.zprofile.  Then, if the shell is
       interactive, commands are read from  /etc/zshrc  and  then
       $ZDOTDIR/.zshrc.   Finally, if the shell is a login shell,
       /etc/zlogin and $ZDOTDIR/.zlogin are read.
Wenn die Shell eine Login-Shell ist werden die Kommandos von /etc/zprofile und dann von $ZDOTDIR/.zprofile gelesen. Dann, wenn die Shell eine interaktive ist, werden die Kommandos von /etc/zshrc, danach $ZDOTDIR/.zshrc gelesen. Zuletzt, sofern die Shell eine Login-Shell ist werden /etc/zlogin and $ZDOTDIR/.zlogin gelesen.
fastix@trainer:~> cat > .zprofile
echo zprofile geladen
[[STRG]+[C]]
fastix@trainer:~> zsh
fastix@trainer:~>
fastix@trainer:~> exit
fastix@trainer:~> cp .zprofile  .zshrc # Die Lösung des Problems....
fastix@trainer:~> export ZDOTDIR="/home/fastix"
fastix@trainer:~> echo $ZDOTDIR
/home/fastix
fastix@trainer:~> zsh
zprofile geladen
fastix@trainer:~>
fastix@trainer:~>
MFFG (Mit freundlich- friedfertigem Grinsen)
fastix®
Moin!
fastix@trainer:~> cp .zprofile  .zshrc # Die Lösung des Problems....
fastix@trainer:~> unset ZDOTDIR
fastix@trainer:~> zsh
zprofile geladen
fastix@trainer:~>
fastix@trainer:~>
Scheinbar ist dann also auch das Setzen der Variable nicht mehr nötig....
MFFG (Mit freundlich- friedfertigem Grinsen)
fastix®
Vielen Dank fastix,
jetzt gehts auch bei mir :)
Schöne Grüße
Julian