我尝试在我的docker容器中为zsh安装symfony2和git插件。
FROM php:7-fpm
# Install Packages
RUN apt-get update && apt-get install -y vim zsh git
RUN docker-php-ext-install pdo pdo_mysql mysqli zip mbstring
# Instal Oh my Zsh
RUN bash -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN sed -i -- 's/robbyrussell/wezm+/g' /root/.zshrc # Other awesome theme: random kafeitu sonicradish wezm+
RUN echo "plugins=(git symfony2)" >> ~/.zshrc
但是自动完成功能不起作用。该插件尚未安装。 我错过了什么吗?
答案 0 :(得分:0)
要使插件加载,我们需要在包含oh-my-zsh.sh
所以这项工作:
RUN sed -i -- 's/plugins=(git)/plugins=(git symfony2)/g' ~/.zshrc # Add symfony2 plugin