Skip to content

Commit

Permalink
fix: use our zsh-in-docker fork
Browse files Browse the repository at this point in the history
  • Loading branch information
id committed May 14, 2024
1 parent 66a16ff commit c911cdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ARG LUX_REF=lux-2.9.1

COPY get-otp.sh get-zsh.sh get-elixir.sh get-fdb.sh get-emqtt-bench.sh get-lux.sh /

RUN /get-zsh.sh && \
RUN /get-zsh.sh && \
/get-otp.sh ${OTP_VERSION} && \
/get-elixir.sh ${ELIXIR_VERSION} && \
env FDB_VERSION=${FDB_VERSION} /get-fdb.sh && \
Expand Down
14 changes: 6 additions & 8 deletions get-zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

set -euo pipefail

URL="https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh"
git clone https://github.com/emqx/zsh-in-docker.git -b V1.1.5-emqx.2

cd /
curl --silent --show-error -fkL "$URL" -o "zsh-in-docker.sh"
cd zsh-in-docker
chmod +x zsh-in-docker.sh

## build

./zsh-in-docker.sh \
alternatives --list | grep python && alternatives --set python /usr/bin/python2 || true
./zsh-in-docker.sh \
-t https://github.com/denysdovhan/spaceship-prompt \
-a 'SPACESHIP_PROMPT_ADD_NEWLINE="false"' \
-a 'SPACESHIP_PROMPT_SEPARATE_LINE="false"' \
Expand All @@ -23,9 +22,8 @@ chmod +x zsh-in-docker.sh
-p 'history-substring-search' \
-a 'bindkey "\$terminfo[kcuu1]" history-substring-search-up' \
-a 'bindkey "\$terminfo[kcud1]" history-substring-search-down'

alternatives --list | grep python && alternatives --set python /usr/bin/python3 || true

## cleanup
cd /
rm -rf zsh-in-docker.sh

rm -rf zsh-in-docker

0 comments on commit c911cdb

Please sign in to comment.