Skip to content

Instantly share code, notes, and snippets.

@andersonpem
Created December 18, 2019 03:41
Show Gist options
  • Save andersonpem/feedf91a49e08c79bf1f97bf4da93e4e to your computer and use it in GitHub Desktop.
Save andersonpem/feedf91a49e08c79bf1f97bf4da93e4e to your computer and use it in GitHub Desktop.
Installing ZSH and oh-my-zsh on Laradock's workspace.
#Add zsh to the applications being installed
##...
libzip-dev zip unzip zsh \
# Change the shell of both users
USER root
RUN usermod --shell $(which zsh) laradock
RUN usermod --shell $(which zsh) root
#Install oh-my-zsh for both users
USER laradock
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
USER root
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment