Skip to content

Commit

Permalink
v6.22
Browse files Browse the repository at this point in the history
+ DietPi-PREP | Add /etc/bashrc.d/*.bash support, backport of: c51a554
  • Loading branch information
MichaIng committed Mar 29, 2019
1 parent ad913b1 commit 2e7475d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,8 @@ _EOF_
rm -f /etc/profile.d/99-dietpi*

# - Enable /etc/bashrc.d/ support for custom interactive non-login shell scripts:
G_CONFIG_INJECT '.*/etc/bashrc\.d/.*' 'for i in /etc/bashrc.d/*.sh; do [ -r "$i" ] && . $i; done' /etc/bash.bashrc
sed -i '\#for i in /etc/bashrc\.d#d' /etc/bash.bashrc
G_CONFIG_INJECT '.*/etc/bashrc\.d/.*' 'for i in /etc/bashrc.d/*.sh /etc/bashrc.d/*.bash; do [ -r "$i" ] && . $i; done' /etc/bash.bashrc

# - Enable bash-completion for non-login shells:
# - NB: It is called twice on login shells then, but breaks directly if called already once.
Expand Down

0 comments on commit 2e7475d

Please sign in to comment.