0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-27 06:08:57 +00:00
glibc-packages/gpkg/bash/system.profile
2023-09-10 16:21:23 +03:00

20 lines
420 B
Plaintext

#
# @TERMUX_PREFIX@/etc/profile
#
for i in @TERMUX_PREFIX@/etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
# Source etc/bash.bashrc and ~/.bashrc also for interactive bash login shells:
if [ "$BASH" ]; then
if [[ "$-" == *"i"* ]]; then
if [ -r @TERMUX_PREFIX@/etc/bash.bashrc ]; then
. @TERMUX_PREFIX@/etc/bash.bashrc
fi
fi
fi