-
Notifications
You must be signed in to change notification settings - Fork 10
/
get-zsh.sh
executable file
·29 lines (24 loc) · 995 Bytes
/
get-zsh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
set -euo pipefail
git clone https://github.com/emqx/zsh-in-docker.git -b V1.1.5-emqx.2
cd zsh-in-docker
chmod +x zsh-in-docker.sh
## build
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"' \
-p git \
-p git-fast \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-p https://github.com/zsh-users/zsh-history-substring-search \
-p https://github.com/zsh-users/zsh-syntax-highlighting \
-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