Merge pull request #2704 from colinpitcher/feature/add-zsh-aliases
Add aliases to .zshrc in workspace when SHELL_OH_MY_ZSH=true
This commit is contained in:
commit
8556088c9e
|
@ -1463,6 +1463,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
|
||||
|
|
Loading…
Reference in New Issue