Skip to content

Instantly share code, notes, and snippets.

@zlocate
Created July 25, 2020 09:37
Show Gist options
  • Save zlocate/9f08e64d9431d1411a848f0cdaade34d to your computer and use it in GitHub Desktop.
Save zlocate/9f08e64d9431d1411a848f0cdaade34d to your computer and use it in GitHub Desktop.
OHMYZSH_INSTALL_URL=https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh
packagesNeeded='zsh'
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 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
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"/g' ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment