Make zsh start by default and allow overriding from script
This commit is contained in:
parent
c67cb08768
commit
89e06e5876
@ -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"]
|
||||
|
@ -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user