]> git.alrj.org Git - zsh.d.git/commitdiff
set SHELL env if not zsh
authorAmand Tihon <amand.tihon@iba-group.com>
Fri, 21 Oct 2022 08:24:15 +0000 (10:24 +0200)
committerAmand Tihon <amand.tihon@iba-group.com>
Fri, 21 Oct 2022 08:24:15 +0000 (10:24 +0200)
S20_env

diff --git a/S20_env b/S20_env
index 0e2cb7218996966d8af2dbdf38f9e80cec710ad5..e70237043f7ce42973ccdaf4261bbac30c4eabca 100644 (file)
--- a/S20_env
+++ b/S20_env
@@ -8,12 +8,16 @@ if [ x"$HOSTNAME" = x ] ; then
         export HOSTNAME=$(hostname)
 fi
 
+# May seem strange, but usefull when the user's official shell is not zsh
+if [ "${SHELL: -3}" != zsh ] ; then
+       export SHELL=/usr/bin/zsh
+fi
+
 export EMAIL="amand.tihon@iba-group.com"
 export FULLNAME="Amand Tihon"
 
 export EDITOR=vim
 
-export LANG=fr_BE.UTF-8
-
 # Virtual env in prompt is already supported.
-export VIRTUAL_ENV_DISABLE_PROMPT="yes"
\ No newline at end of file
+export VIRTUAL_ENV_DISABLE_PROMPT="yes"
+