Last active
March 20, 2023 16:00
-
-
Save SamSpiri/4466d0aeff694fb6e9019dd6d3b63770 to your computer and use it in GitHub Desktop.
ZSH with PowerLevel10k auto install script for ubuntu 22.04 20.04 18.04
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
#!/bin/sh | |
# | |
# https://gist.github.com/SamSpiri/4466d0aeff694fb6e9019dd6d3b63770 | |
# | |
# Install zsh. | |
sudo apt install -y zsh; | |
# powerlevel10k | |
sh -c "$(curl -s -L https://github.com/OpusCapita/zsh-in-docker/raw/master/zsh-in-docker.sh)" -- \ | |
-a 'CASE_SENSITIVE="true"' \ | |
-p git \ | |
-p https://github.com/zsh-users/zsh-completions \ | |
-p https://github.com/zsh-users/zsh-syntax-highlighting | |
# get & overwrite zsh config | |
curl https://github.com/OpusCapita/infra-workspace/raw/master/zshrc.zsh -H "Cache-Control: no-cache" -L > ~/.zshrc | |
# get powerlevel10k config | |
curl https://github.com/OpusCapita/infra-workspace/raw/master/.p10k.zsh -H "Cache-Control: no-cache" -L > ~/.p10k.zsh | |
# preserve your history | |
[[ ! -f "$HOME/.histfile" ]] && cat "$HOME/.bash_history" > "$HOME/.histfile" | |
# set as default | |
sudo usermod --shell /bin/zsh $USER | |
# activate | |
exec zsh | |
echo "Relogin for changes to take effect" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment