Make zsh start by default and allow overriding from script

This commit is contained in:
Kristóf Tóth 2018-05-24 21:51:51 +02:00
parent c67cb08768
commit 89e06e5876
2 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,10 @@ RUN cd /root
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" &&\
ln -sf /root/zshrc/rc /root/.zshrc &&\
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting &&\
chsh -s /bin/zsh
RUN git clone --depth 1 https://github.com/junegunn/fzf.git /root/.fzf &&\
/root/.fzf/install
CMD ["/bin/zsh"]

View File

@ -22,7 +22,7 @@ run() {
fi
mount_point="/mnt/$(basename "$here")"
docker run --rm -ti -v "$here":"$mount_point" -w "$mount_point" debian-here /bin/zsh
docker run --rm -ti -v "$here":"$mount_point" -w "$mount_point" debian-here "$@"
}
run
run "$@"