Load system-wide zsh files
This commit is contained in:
parent
bef9016deb
commit
28f6c578ec
2 changed files with 21 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue