-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
73 lines (62 loc) · 2 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#Install script for NotApplicable's .dotfiles!
#VERSION: 1.0.1
# System Check #
# Currently Does Nothing #
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
echo "== User's System: ${machine} =="
# sudo check, to ensure everything installs correctly we need sudo #
if [ $EUID -ne 0 ]; then
echo "This script must be run as root"
exit 1
fi
# Update #
echo "== Updating and upgrading =="
apt-get update
apt-get upgrade
# Install ZSH #
echo "== Installing ZSH =="
apt-get install zsh
# Install Other Dependencies #
echo "== Installing stow =="
apt-get install stow
echo "== Installing Build Essentials =="
apt-get install build-essential
apt-get install g++ gdb
apt-get install clang++-3.8 lldb
apt-get install gcc-multilib g++-multilib
# Move Theme Files #
cp zsh/custom/resources/lambda-zsh-theme/cdimascio-lambda.zsh-theme zsh/custom/themes/cdimascio-lambda.zsh-theme
cp zsh/custom/resources/spaceship-prompt/spaceship.zsh-theme zsh/custom/themes/spaceship.zsh-theme
# Create simlinks for dotfiles #
echo "== Creating SimLinks =="
sudo stow zsh
sudo stow vim
cd ..
sudo rm custom
sudo rm config.vim
# Cleanup #
read -p "Delete old bashrc files? [Y/n]" delOld
if [ $delOld = 'Y' ]; then
echo "== Deleting bashrc files =="
sudo rm .bash_history
sudo rm .bash_logout
sudo rm .bashrc
else
echo "== Skipping deletion of bashrc files =="
fi
echo "
=======================================================================================
Additonal notes:
\n 1. If you are on WSL you can type 'code' to install vscode-server
\n 2. After install, run 'chsh -s $(which zsh)' to set ZSH as your default shell
\n 3. Then reboot your shell to see reflected changes
=======================================================================================
"