-
Notifications
You must be signed in to change notification settings - Fork 0
/
terminal.sh
31 lines (22 loc) · 869 Bytes
/
terminal.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
#!/usr/bin/bash
echo "Initialize installation terminal"
function check_update {
sudo apt update
}
function install_zsh {
sudo apt install zsh -y
chsh -s /bin/zsh
}
function install_oh_my_zsh {
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
mkdir -p ~/.fonts
git clone https://github.com/pdf/ubuntu-mono-powerline-ttf.git ~/.fonts/ubuntu-mono-powerline-ttf
fc-cache -vf
}
# ⚠️ ⚠️ Restart the machine update all packages ⚠️ ⚠️
check_update
install_zsh
install_oh_my_zsh
echo "Finish installation terminal"