diff options
author | snafu | 2017-05-08 10:38:44 +0200 |
---|---|---|
committer | snafu | 2017-05-08 10:38:44 +0200 |
commit | aa40dce69817bfb08588c307f8668d4f85d12dff (patch) | |
tree | 873de77d329cf38b680da75d696dfa97c9e47632 /env-modules.sh | |
parent | f168774b9844d8635bf1306eb5d653129239e151 (diff) | |
download | aur-aa40dce69817bfb08588c307f8668d4f85d12dff.tar.gz |
zshcomp.patch
Diffstat (limited to 'env-modules.sh')
-rw-r--r-- | env-modules.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/env-modules.sh b/env-modules.sh new file mode 100644 index 000000000000..2b474b9e0b1c --- /dev/null +++ b/env-modules.sh @@ -0,0 +1,11 @@ + +# init module enviroment + +shell=$(/bin/basename $(/bin/ps -p $$ -ocomm=)) + +if [ -f /usr/Modules/init/$shell ]; then + source /usr/Modules/init/$shell +else + source /usr/Modules/init/sh +fi + |