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®
Als Freiberufler bin ich immer auf der Suche nach Aufträgen: Schulungen, Development. Auch für seriöse Agenturen.