Created
July 25, 2020 09:32
-
-
Save zlocate/93b8a89e5d82d70d0e219f9ba1f7d8d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
| OHMYZSH_INSTALL_URL=https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | |
| packagesNeeded='zsh curl git' | |
| POWERLEVEL10K_URL=https://github.com/romkatv/powerlevel10k.git | |
| if [ -x "$(command -v apk)" ]; then sudo apk add --no-cache $packagesNeeded | |
| elif [ -x "$(command -v apt-get)" ]; then sudo apt-get -y install $packagesNeeded | |
| elif [ -x "$(command -v dnf)" ]; then sudo dnf install $packagesNeeded | |
| elif [ -x "$(command -v zypper)" ]; then sudo zypper install $packagesNeeded | |
| else echo "FAILED TO INSTALL PACKAGE: Package manager not found. You must manually install: $packagesNeeded">&2; fi | |
| # Устанавливаем oh-my-zsh и ставить zsh шеллом по-умолчанию | |
| echo "Y" | sh -c "$(curl -fsSL $OHMYZSH_INSTALL_URL)" | |
| # Клонируем тему | |
| git clone --depth=1 $POWERLEVEL10K_URL ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
| #Заменяем тему | |
| sed -i 's/\ZSH_THEME="robbyrussell\"/\ZSH_THEME="powerlevel10k\/powerlevel10k\"/' ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment