-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin-install.sh
64 lines (56 loc) · 1.47 KB
/
plugin-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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
intall-zsh-syntax-highlighting () {
mkdir ~/.zsh-ext
cd ~/.zsh-ext
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
cd ~
sed -i "2isource ~/.zsh-ext/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" .zshrc
}
intall-zsh-autosuggestions () {
mkdir ~/.zsh-ext
cd ~/.zsh-ext
git clone https://github.com/zsh-users/zsh-autosuggestions.git
cd ~
sed -i "2isource ~/.zsh-ext/zsh-autosuggestions/zsh-autosuggestions.zsh" .zshrc
}
intall-zsh-autocomplete () {
mkdir ~/.zsh-ext
cd ~/.zsh-ext
git clone https://github.com/marlonrichert/zsh-autocomplete.git
cd ~
sed -i "2isource ~/.zsh-ext/zsh-autocomplete/zsh-autocomplete.plugin.zsh" .zshrc
}
install-lsd () {
mkdir ~/.zsh-ext
cd ~/.zsh-ext
echo "downloading lsd"
wget "https://github.com/Peltoche/lsd/releases/download/0.21.0/lsd_0.21.0_amd64.deb"
echo "installing lsd"
sudo dpkg -i lsd_0.21.0_amd64.deb
rm ~/.zsh-ext/lsd_0.21.0_amd64.deb
}
install-colorls () {
cd mkdir ~/.zsh-ext
cd ~/.zsh-ext
gem install colorls
}
printf "Available plugins:-
(1) zsh-syntax-highlighting
(2) zsh-autosuggestions
(3) zsh-autocomplete
(4) lsd
(5) colorls\n"
read -p "which plugin do you want to install, enter number :-" num
if [[ $num -eq "1" ]]; then
intall-zsh-syntax-highlighting
elif [[ $num -eq "2" ]]; then
intall-zsh-autosuggestions
elif [[ $num -eq "3" ]]; then
intall-zsh-autocomplete
elif [[ $num -eq "4" ]]; then
install-lsd
elif [[ $num -eq "5" ]]; then
install-colorls
else
echo "else"
fi