diff --git a/Dockerfile b/Dockerfile index 5757ab5..7e36d52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,5 +38,23 @@ RUN apt-get update && apt-get install --no-install-recommends -y valgrind\ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Install Bash Completion +RUN apt-get update && apt-get install --no-install-recommends -y bash-completion\ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* +RUN echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc + +ENV HOME /home/root +WORKDIR $HOME + +# Install Git Prompt +RUN wget -O ~/.git-prompt.sh --no-check-certificate \ + https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh \ + && rm -fr ~/.wget-hsts +RUN echo "source ~/.git-prompt.sh" >> ~/.bashrc + +# Setup User Prompts +RUN echo "export PS1='\\[\\e[1m\\]\\[\\e[32m\\]\\u\\[\\e[0m\\]\\[\\e[35m\\] @\\[\\e[0m\\] \\[\\e[3m\\]\\[\\e[34m\\]\\W\\[\\e[0m\\] \$(__git_ps1 \"\\[\\e[35m\\]on \\[\\e[33m\\]\\[\\e[3m\\]%s \")\\[\\e[0m\\]\\[\\e[35m\\]\$\\[\\e[0m\\]\\[\\e[33m\\]:\\[\\e[0m\\] \\[\\e[36m\\]'" >> ~/.bashrc + # Shortcut for python3 -RUN echo -e '\nalias py=python3\n' >> ~/.bashrc +RUN echo 'alias py=python3' >> ~/.bashrc