Skip to content

Instantly share code, notes, and snippets.

@laurenchen0631
Created December 4, 2015 06:49
Show Gist options
  • Save laurenchen0631/978e30769211311effbb to your computer and use it in GitHub Desktop.
Save laurenchen0631/978e30769211311effbb to your computer and use it in GitHub Desktop.
Docker Ubuntu with prezto zsh
FROM ubuntu:latest
RUN apt-get update && apt-get -y upgrade && apt-get install -y \
git \
zsh \
vim \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
COPY ./.zshrc /
RUN chsh -s /bin/zsh
RUN /bin/zsh -c "source /.zshrc"
RUN sed -ri "s/theme 'sorin'/theme 'skwp'/g" ~/.zpreztorc
RUN sed -ri "s/'prompt'/'prompt' 'syntax-highlighting' 'history-substring-search' 'git'/g" ~/.zpreztorc
RUN zsh
CMD ["zsh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment