-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·55 lines (48 loc) · 1.35 KB
/
setup.sh
File metadata and controls
executable file
·55 lines (48 loc) · 1.35 KB
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
#/bin/sh
usage()
{
echo "Usage: setup.sh [[-a] | [-u]]"
}
helpPrompt()
{
echo "This script is used to setup a Linux terminal environment with programs";
echo "geared toward development in Linux. Only the first option passed to the";
echo "script will be respected."; echo;
echo " -a Setup for an Arch Linux based system."; echo;
echo " -u Setup for an Ubuntu Linux based system."; echo;
echo " -h Show this help."; echo;
echo "Creator: John Thomas <jthomas2892@gmail.com>"; echo;
}
isArch=false
isUbuntu=false
if [ $# -ge 1 ]; then
case "$1" in
-a) isArch=true ;;
-u) isUbuntu=true ;;
-h) helpPrompt
exit
;;
*) usage
exit
;;
esac
else
isUbuntu=true
fi
if [ $isUbuntu == true ]; then
echo "Running setup for Ubuntu."; echo;
sudo apt install wget curl git zsh
cd $HOME
wget https://raw.githubusercontent.com/BHD25/LinuxSetup/master/Ubuntu/.bash_aliases
echo "Figure out how to install oh-my-zsh"
exit
fi
if [ $isArch == true ]; then
echo "Running setup for Arch."; echo;
sudo pacman -Syu wget curl git zsh
cd $HOME
wget https://raw.githubusercontent.com/BHD25/LinuxSetup/master/Arch/.bash_aliases
echo "Figure out how to install oh-my-zsh"
exit
fi
exit