Files
dotfiles/script/install.d/05-zsh.sh
2024-03-03 21:07:05 +00:00

22 lines
538 B
Bash

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Configure zsh shell.
#
if ! command -v zsh &> /dev/null; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get install -qq zsh
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install zsh
fi
fi
zsh --version
# check if oh-my-zsh is installed
if [[ ! -d "$HOME/.oh-my-zsh" ]]; then
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi