diff options
Diffstat (limited to 'data/live-build-config/hooks/live/03-root_bash_completion.chroot')
-rwxr-xr-x | data/live-build-config/hooks/live/03-root_bash_completion.chroot | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/03-root_bash_completion.chroot b/data/live-build-config/hooks/live/03-root_bash_completion.chroot new file mode 100755 index 00000000..b7ea8f52 --- /dev/null +++ b/data/live-build-config/hooks/live/03-root_bash_completion.chroot @@ -0,0 +1,10 @@ +#!/bin/sh + +grep -q '\(^[^#]*\)\(\.\|source\) /etc/bash_completion' root/.bashrc || \ + cat <<-EOF >> root/.bashrc + + source /etc/bash_completion + EOF + +sed -i 's/set $BASH_COMPLETION_ORIGINAL_V_VALUE/builtin set $BASH_COMPLETION_ORIGINAL_V_VALUE/g' /usr/share/bash-completion/bash_completion + |