Load system-wide zsh files

This commit is contained in:
Anthony Rose 2022-08-18 17:04:19 +01:00
parent bef9016deb
commit 28f6c578ec
2 changed files with 21 additions and 2 deletions

View file

@ -1,9 +1,20 @@
#!/bin/bash
export ACP_BASH_PROFILE=1
if [ -r /etc/profile ]
if [ -n "$BASH_VERSION" ]
then
. /etc/profile
if [ -r /etc/profile ]
then
. /etc/profile
fi
fi
if [ -n "$ZSH_VERSION" ]
then
if [ -r /etc/zprofile ]
then
. /etc/zprofile
fi
fi
export BASH_ENV="$HOME/.bashrc"

View file

@ -53,6 +53,14 @@ then
fi
if [ -n "$ZSH_VERSION" ]
then
if [ -f /etc/zshrc ]
then
. /etc/zshrc
fi
fi
_acp_add_path () {
if ! [[ ":$PATH:" =~ ":$1:" ]] && test -d "$1"
then