workstation/roles/home-cli/files/bash_profile

35 lines
493 B
Bash
Raw Normal View History

2021-02-20 22:59:54 +00:00
#!/bin/bash
export ACP_BASH_PROFILE=1
2022-08-18 16:04:19 +00:00
if [ -n "$BASH_VERSION" ]
2021-02-20 22:59:54 +00:00
then
2022-08-18 16:04:19 +00:00
if [ -r /etc/profile ]
then
. /etc/profile
fi
fi
if [ -n "$ZSH_VERSION" ]
then
if [ -r /etc/zprofile ]
then
. /etc/zprofile
fi
2021-02-20 22:59:54 +00:00
fi
export BASH_ENV="$HOME/.bashrc"
export BLOCKSIZE=K
export EDITOR=vi
export LANG=C
export PAGER=less
if [ -r "$HOME/.bash_profile.$(hostname -s)" ]
then
. "$HOME/.bash_profile.$(hostname -s)"
fi
if [ -z "$ACP_BASHRC" ] || [ -n "$SSH_TTY" ]
then
. "$HOME/.bashrc"
fi