Browse Source

Make possible to source a local zshenv (~/.zshenv.local)

Emmanuel Bouthenot 8 years ago
parent
commit
f728a1c262
1 changed files with 9 additions and 2 deletions
  1. 9 2
      .zshenv

+ 9 - 2
.zshenv

@@ -9,11 +9,18 @@ export PATH="${HOME}/bin:${HOME}/.bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/b
 export LANG=fr_FR.UTF-8
 export LC_MESSAGES=en_US.UTF-8
 
-# DISPLAY settings
-[ -f /etc/debian_chroot ] && export DISPLAY=:0.0
+# DISPLAY settings in chroots
+if [[ -f /etc/debian_chroot ]]; then
+    export DISPLAY=:0.0
+fi
 
 # Chromium settings (disable some services: Spelling, Suggest, Translate,
 # Geolocation, Safe Browsing, etc.)
 export GOOGLE_API_KEY=" "
 export GOOGLE_DEFAULT_CLIENT_ID=" "
 export GOOGLE_DEFAULT_CLIENT_SECRET=" "
+
+# sourcing local environment
+if [[ -f ~/.zshenv.local ]]; then
+    . ~/.zshenv.local
+fi