-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from emqx/install-zsh-on-unbuntu-for-dev
feat: install zsh on unbuntu for developing
- Loading branch information
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |