From 30f976e4862e41e9610b5bb32eb87e98015adc70 Mon Sep 17 00:00:00 2001 From: code5hot <32754917+code5hot@users.noreply.github.com> Date: Mon, 26 Aug 2019 10:52:41 +0100 Subject: [PATCH] Enable bash-completion (assuming /etc/profile is sourced by default) --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1760860..5a6c303 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ RUN apt-get update && apt-get install -y \ happy \ # development conveniences - sudo xutils-dev \ + sudo xutils-dev bash-completion \ # For document generation xsltproc docbook-xsl \ @@ -67,6 +67,10 @@ RUN apt-get update && apt-get install -y \ git php-cli php-curl libssl-dev vim-tiny \ && apt-get clean +# enable bash-completion +# finds the bash completion section via a key comment then uncomments the following comment lines +sed -i '/^#.*bash.*completion/{:more;N;s/\n#/\n/;t more}' /etc/bash.bashrc + RUN mkdir /php && cd /php \ && git clone https://github.com/phacility/libphutil.git \ && git clone https://github.com/phacility/arcanist.git