Skip to content

Commit

Permalink
test zsh-in-docker patch
Browse files Browse the repository at this point in the history
  • Loading branch information
id committed May 14, 2024
1 parent 66a16ff commit d97f2fe
Show file tree
Hide file tree
Showing 2 changed files with 8 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
15 changes: 7 additions & 8 deletions get-zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

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 0514-support-other-rhel-distros

cd /
curl --silent --show-error -fkL "$URL" -o "zsh-in-docker.sh"
cd zsh-in-docker
#curl --silent --show-error -fkL "$URL" -o "zsh-in-docker.sh"
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 +23,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 d97f2fe

Please sign in to comment.