Improve handling of bash history

This commit is contained in:
Kristóf Tóth 2018-03-04 11:28:34 +01:00
parent 82073fda8c
commit ac8e5506a5
1 changed files with 6 additions and 1 deletions

View File

@ -62,7 +62,12 @@ ENV PYTHONPATH="/usr/local/lib/" \
TFW_TERMINADO_DIR="/tmp/terminado_server" \
TFW_FRONTEND_DIR="/srv/frontend" \
TFW_HISTFILE="/home/${AVATAO_USER}/.bash_history" \
PROMPT_COMMAND="history -a"
PROMPT_COMMAND="history -a" \
HISTFILESIZE=1000 \
HISTSIZE=1000
RUN sudo -u ${AVATAO_USER} bash -c 'shopt -s cmdhist' &&\
sudo -u ${AVATAO_USER} bash -c 'shopt -s histappend'
COPY nginx/nginx.conf ${TFW_NGINX_CONF}
COPY nginx/components/ ${TFW_NGINX_COMPONENTS}