-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.install.zsh
49 lines (35 loc) · 1.27 KB
/
.install.zsh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/zsh
function install_plugins(){
# Get OS name
CURRENT_OS=`uname`
# OS specific plugins
if [[ $CURRENT_OS == 'Darwin' ]]; then
install_macos
elif [[ $CURRENT_OS == 'Linux' ]]; then
DISTRO=$(bash -c 'cat /etc/*-release | grep -a ^ID=')
if [[ $DISTRO == *'ubuntu'* || $DISTRO == *'debian'* || $DISTRO == *'raspbian'* ]]; then
install_debian
fi
fi
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
pip3 install install-release
install-release config --path ~/.local/bin
install-release get https://github.com/gsamokovarov/jump -y
curl https://zyedidia.github.io/eget.sh | sh
mv eget ~/.local/bin
eget gsamokovarov/jump
ZSH= sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
if grep -Fxq "source ~/dotfiles/.dotfile" ~/.zshrc
then
# code if found
else
echo "source ~/dotfiles/.dotfile" >> ~/.zshrc
fi
}
function install_macos(){
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
}
function install_debian(){
sudo apt install -y curl python3-pip
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
}