diff --git a/Dockerfile b/Dockerfile index d7dcac6..6ae5155 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,20 +56,53 @@ RUN \ bundle config set app_config ${GEM_HOME} ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 +ARG HELIX_VERSION=24.07 +RUN curl -L https://github.com/helix-editor/helix/releases/download/${HELIX_VERSION}/helix-${HELIX_VERSION}-x86_64-linux.tar.xz -o /tmp/helix.tar.xz && \ + cd /opt/ && \ + tar -xf /tmp/helix.tar.xz && \ + ln -s /opt/helix-${HELIX_VERSION}-x86_64-linux/hx /usr/local/bin chmod +x /usr/local/bin/ USER ${NAME} -RUN mkdir -p ~/.config/fish && echo "set fish_greeting" >> ~/.config/fish/config.fish -RUN \ - echo >> ~/.config/fish/config.fish &&\ - echo "function fish_prompt" >> ~/.config/fish/config.fish &&\ - echo " set -l last_status \$status" >> ~/.config/fish/config.fish &&\ - echo " set -l stat" >> ~/.config/fish/config.fish &&\ - echo " if test \$last_status -ne 0" >> ~/.config/fish/config.fish &&\ - echo " set stat (set_color red)\"[\$last_status]\"(set_color normal)" >> ~/.config/fish/config.fish &&\ - echo " end" >> ~/.config/fish/config.fish &&\ - echo " string join '' -- (set_color green) (prompt_pwd) (set_color normal) \$stat ' 🐳 '" >> ~/.config/fish/config.fish && \ - echo "end" >> ~/.config/fish/config.fish +RUN mkdir -p ~/.config/fish ~/.config/helix + +COPY <