-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
26 lines (23 loc) · 852 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
qu=$SHELL
ba=/bin/zsh
if [ "$qu" == "$ba" ]
echo "Shell is ZSH"
then
if [ ! -d "$HOME/.oh-my-zsh" ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/okaragoz/dotfiles.git "$HOME/tmp"
cp -rf "$HOME/tmp/" "$HOME"
rm -rf "$HOME/tmp/"
echo "OhmyZSH and Dotfiles are installed"
git clone --depth=1 https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
else
git clone --depth=1 https://github.com/okaragoz/dotfiles.git "$HOME/tmp"
cp -rf "$HOME/tmp/" "$HOME"
rm -rf "$HOME/tmp/"
echo "Installing minimal Dotfiles for the first time"
git clone --depth=1 https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
fi
else
echo "Please install zsh shell first and run this script"
fi