summaryrefslogtreecommitdiff
path: root/pcr/bash-dynamic-completion/dynamic_completion.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/bash-dynamic-completion/dynamic_completion.install')
-rw-r--r--pcr/bash-dynamic-completion/dynamic_completion.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcr/bash-dynamic-completion/dynamic_completion.install b/pcr/bash-dynamic-completion/dynamic_completion.install
new file mode 100644
index 000000000..bd2fb0c5b
--- /dev/null
+++ b/pcr/bash-dynamic-completion/dynamic_completion.install
@@ -0,0 +1,8 @@
+post_install() {
+ chmod 744 /etc/cron.monthly/dynamic_completion.sh
+ echo "Executing /etc/cron.monthly/dynamic_completion.sh"
+ /etc/cron.monthly/dynamic_completion.sh
+
+ echo "Please insert this line into /etc/bash.bashrc instead of calling /etc/bash_completion"
+ . /etc/bash_dyncompletion
+}