-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·42 lines (36 loc) · 1.22 KB
/
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
#!/bin/bash
os=$(cat /etc/os-release | grep ID= | sed 's/ID=//')
if [[ $os = "ubuntu" ]]; then
echo 'detected os as ubuntu'
#for mass install of common packages
sudo apt-get update && apt-get upgrade
sudo apt install zsh tree git nitrogen tmux curl wget vim neofetch
#run nitrogen to configure monitors
elif [[ $os = 'manjaro' ]]; then
echo 'detected os as manjaro'
sudo pacman -Syu
pacman -S zsh tree git tmux curl wget vim neofetch
else
echo "os isn't currently configured, exiting."
exit
fi
#install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
#powerlevelfonts
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
sudo mv PowerlineSymbols.otf /usr/share/fonts/
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d
#place config file in proper locations
rm ~/.startup.sh
cp startup.sh ~/
rm ~/.zshrc
cp .zshrc ~/
rm ~/.vimrc
cp .vimrc ~/
rm ~/.tmux.conf
cp .tmux.conf ~/
#change default shell
chsh -s $(which zsh)