-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos-and-shell.sh
executable file
·62 lines (50 loc) · 1.6 KB
/
os-and-shell.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
#! /bin/bash
# UI and Quality of Life Improvements
## Redshift (flux-like night light package)
## See https://github.com/jonls/redshift
sudo apt-get install redshift-gtk
if [ -f "~/.config/redshift.conf" ]
then
printf "Copied Redshift config to ~/.config/redshift.conf\n\n"
cp ./redshift.conf ~/.config/redshift.conf
else
printf "Redshift config is already present\n\n"
fi
## Fix Scrolling Direction
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll true
printf "Scrolling Direction Fixed\n\n"
# Terminal Setup
## Install Powerline (terminal prettiness)
sudo apt-get install fonts-powerline -y
sudo apt-get install powerline -y
printf "Powerline Installed\n\n"
## Install Fira Code (fav font)
sudo apt-get install fonts-firacode -y
read -n 1 -p "In terminal preferences select 'Fira Mono Medium'"
printf "Finished Installing Fonts\n\n"
## Add Powerline to shell
if grep -q "POWERLINE-FINGERPRINT" ~/.bashrc;
then
printf "Powerline already present in .bashrc\n\n"
else
cat ./bashrc-addons/powerline.sh >> ~/.bashrc
printf "Added Powerline to .bashrc\n\n"
fi
## Add upgrade_everything function to shell
if grep -q "UPGRADE-EVERYTHING-FINGERPRINT" ~/.bashrc;
then
printf "upgrade_everything already present in .bashrc\n\n"
else
cat ./bashrc-addons/upgrade-everything.sh >> ~/.bashrc
printf "Added upgrade_everything to .bashrc\n\n"
fi
printf "OS and Shell setups complete!\n\n"
# Reboot Prompt
read -p "Would you like to reboot? [Y/n]: " should_reboot
if [[ $should_reboot == "" || $should_reboot =~ [Yy] ]]
then
printf "Rebooting!\n"
reboot
else
printf "Completed, no reboot\n"
fi