Skip to content

Commit

Permalink
fix: history
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Lauber <[email protected]>
  • Loading branch information
janlauber committed Jun 20, 2023
1 parent 7db8f43 commit fe94773
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ RUN echo 'export HISTFILE=/home/kubelab-agent/.bash_history' >>/home/kubelab-age
RUN touch /home/kubelab-agent/.bash_history
RUN chown kubelab-agent:kubelab-agent /home/kubelab-agent/.bash_history
RUN chmod 644 /home/kubelab-agent/.bash_history
# shopt -s histappend
RUN echo 'shopt -s histappend' >>/home/kubelab-agent/.bashrc
# PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
RUN echo 'PROMPT_COMMAND="history -a;$PROMPT_COMMAND"' >>/home/kubelab-agent/.bashrc

# replace existing PS1 with a shorter to username@kubelab-agent and current working directory
RUN echo 'export PS1="\[\033[01;34m\]\u@kubelab-agent\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\\$ "' >>/home/kubelab-agent/.bashrc
Expand Down

0 comments on commit fe94773

Please sign in to comment.