Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Correct way to set environment
- X-seq: zsh-users 17473
- From: Florian Lindner <mailinglists@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Correct way to set environment
- Date: Sat, 15 Dec 2012 14:29:24 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=google; h=mime-version:sender:x-google-sender-delegation:x-originating-ip :date:x-google-sender-auth:message-id:subject:from:to:content-type; bh=Okcs3zmULAi1v8NS97veEuBl75ReByr7WhWKqNms6NE=; b=cSb2LTQI1OQ30JnmhhKHJzmXwzSi81XY7sEYLNz4T8wZL1C04eNPsorWx5U2ERNclD s2zmKJBJefh+RhARqen8ylpNvN43KJHo73DrqSlyNsrl16AXXSMTWHEl++oUhptEBdIk b5+Y+jhor4Nvk3zt2oKggrxn8I28y+tsL0fgQ=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Sender: florian.lindner@xxxxxx
Hello,
I'm a bit puzzled about the way to set global environment variables.
I've ushed .zshenv for that purpose since it is sourced on every shell
invocation.
florian@horus ~ % cat .zshenv
PATH=$HOME/flof/src:$HOME/software/bin:$PATH
PATH=/home/florian/software/src/boar:$PATH
PYTHONPATH=$HOME/flof/src:$PYTHONPATH
No other relevant z-files are present. This works as far as it sets
the PYTHONPATH variable but if I launch python it is not taken into
account. When I use export PYTHONPATH, the pythonpath gets longer and
longer if I invoke a zsh session within a zsh session.
What is the best way to set some environment variables, no matter how
(login, interactive, ...) the shell is invoced?
Thanks,
Florian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author