0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 05:49:50 +00:00
packages/utils/bash/files/etc/bash.bashrc
Jeffery To 1929baac6d bash: Enable system-wide .bashrc file, source /etc/shinit
This enables a system-wide .bashrc file (/etc/bash.bashrc), as well as
some other options related to startup files, and sources /etc/shinit for
interactive shells.

Fixes https://bugs.openwrt.org/index.php?do=details&task_id=3019.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 04:38:24 +08:00

7 lines
132 B
Plaintext

# System-wide .bashrc file
# Continue if running interactively
[[ $- == *i* ]] || return 0
[ \! -s /etc/shinit ] || . /etc/shinit