diff --git a/workspace/Dockerfile b/workspace/Dockerfile index f5a88468..ad86f111 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1413,6 +1413,36 @@ bindkey "^?" backward-delete-char\n' >> /home/laradock/.zshrc \ USER root +########################################################################### +# ZSH User Aliases +########################################################################### + +USER root + +COPY ./aliases.sh /root/aliases.sh +COPY ./aliases.sh /home/laradock/aliases.sh + +RUN if [ ${SHELL_OH_MY_ZSH} = true ]; then \ + sed -i 's/\r//' /root/aliases.sh && \ + sed -i 's/\r//' /home/laradock/aliases.sh && \ + chown laradock:laradock /home/laradock/aliases.sh && \ + echo "" >> ~/.zshrc && \ + echo "# Load Custom Aliases" >> ~/.zshrc && \ + echo "source ~/aliases.sh" >> ~/.zshrc && \ + echo "" >> ~/.zshrc \ +;fi + +USER laradock + +RUN if [ ${SHELL_OH_MY_ZSH} = true ]; then \ + echo "" >> ~/.zshrc && \ + echo "# Load Custom Aliases" >> ~/.zshrc && \ + echo "source ~/aliases.sh" >> ~/.zshrc && \ + echo "" >> ~/.zshrc \ +;fi + +USER root + # #-------------------------------------------------------------------------- # Final Touch