add kube PS to cloud-toolbox

This commit is contained in:
Szwendacz 2023-12-22 15:48:15 +01:00 committed by Maciej Lebiest
parent 9a2ab1701c
commit 0a0a36e36b
2 changed files with 428 additions and 1 deletions

View file

@ -24,7 +24,11 @@ RUN dnf clean all && \
WORKDIR /data
COPY kube_ps.sh /root/kube_ps.sh
RUN echo $'[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc
RUN echo $'[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash;\
source /root/kube_ps.sh;\
PS1=\'[cloud-toolbox \W/ $(kube_ps1)]\$ \'\
' >> /root/.bashrc
ENTRYPOINT [ "/bin/bash" ]