From 89e06e587655eb08e9ad7ba1a211798f16e12ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 24 May 2018 21:51:51 +0200 Subject: [PATCH] Make zsh start by default and allow overriding from script --- Dockerfile | 5 ++++- debian-here.sh | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ee6215a..ca95566 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/debian-here.sh b/debian-here.sh index fe4b31c..14d00e1 100755 --- a/debian-here.sh +++ b/debian-here.sh @@ -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 "$@"