feat: dir, install changes
This commit is contained in:
21
script/install.d/05-zsh.sh
Normal file
21
script/install.d/05-zsh.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user