blob: 61202b61f1415493c8b4afed4ae3267e979c5188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# /etc/bash/bashrc
# Proceed no further in the case of a non-interactive shell.
if [[ $- != *i* ]]; then
return
fi
# Disable completion when the input buffer is empty. Requires readline support.
shopt -s no_empty_cmd_completion 2>/dev/null
# Append to HISTFILE rather than overwrite upon exiting, per bug #139609.
shopt -s histappend
# Initialise PROMPT_COMMAND as an array, which is permitted as of bash 5.1.
PROMPT_COMMAND=()
for _ in /etc/bash/bashrc.d/*; do
if [[ $_ == *.@(bash|sh) && -r $_ ]]; then
source "$_"
fi
done
|