-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·61 lines (46 loc) · 1.48 KB
/
start.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
#!/bin/bash
set -e
GREEN='\e[32m'
NC='\e[0m' # No Color
confirm_and_install() {
echo -e -n "Install ${GREEN}$1${NC} [Y/n]? "
read choice
if [[ $choice =~ ^[Yy]$ ]]; then
source $2
fi
}
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# optimizing and updating pacman
sudo pacman-optimize && sync
sudo pacman -Syu
setxkbmap -option 'ctrl:nocaps'
# essentials
sudo pacman --noconfirm -S make
sudo pacman --noconfirm -S gcc
sudo pacman --noconfirm -S jq
sudo pacman --noconfirm -S gconf
# ssh-agent
sudo pacman --noconfirm -S keychain
# common request libs
sudo pacman --noconfirm -S unixodbc
confirm_and_install "snapd" ./scripts/snapd.sh
elif [[ "$OSTYPE" == "darwin"* ]]; then
set +e
xcode-select --install
sudo xcodebuild -license accept
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
set -e
brew tap homebrew/cask
brew tap homebrew/cask-versions
brew install coreutils
fi
confirm_and_install "User apps, themes and fonts" ./scripts/user_apps.sh
#confirm_and_install "pkgfile" ./scripts/pkgfile.sh
confirm_and_install "docker" ./scripts/docker.sh
confirm_and_install "zsh" ./scripts/zsh.sh
#confirm_and_install "emacs" ./scripts/emacs.sh
if [[ "$OSTYPE" == "linux-gnu" ]]; then
confirm_and_install "i3wm" ./scripts/i3wm.sh
fi
confirm_and_install "languages (Go, Python, JS)" ./scripts/languages.sh
#confirm_and_install "nordvpn CLI" ./scripts/vpn.sh