This repository was archived by the owner on Mar 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
128 lines (109 loc) · 6.54 KB
/
Copy pathinstall.sh
File metadata and controls
128 lines (109 loc) · 6.54 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/usr/bin/env bash
USER_NAME="John Carey"
USER_EMAIL="certifiedcloudarchitect@gmail.com"
#-------------------------------------------------------------------------------------------------------------
# configure-macos
# parameters: [CONFIG_MACOS] true or false
# note: requires password to make system changes
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/configure-macos.sh
#-------------------------------------------------------------------------------------------------------------
# install-brew
# parameters: [INSTALL_BREW]
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-brew.sh
#-------------------------------------------------------------------------------------------------------------
# install-omz
# parameters: [INSTALL_OMZ]
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-omz.sh
#-------------------------------------------------------------------------------------------------------------
# configure-ssh
# parameters: [USER_EMAIL] [CONFIG_SSH]
# note: prompt for a new ssh password to generate the key
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/configure-ssh.sh "${USER_EMAIL}"
#-------------------------------------------------------------------------------------------------------------
# configure-gpg
# parameters: [USER_NAME] [USER_EMAIL] [CONFIG_GPG]
# note: prompt for a new gpg password to generate the key
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/configure-gpg.sh "${USER_NAME}" "${USER_EMAIL}"
#-------------------------------------------------------------------------------------------------------------
# configure-git
# parameters: [USER_NAME] [USER_EMAIL] [CONFIG_GIT]
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/configure-git.sh "${USER_NAME}" "${USER_EMAIL}"
#-------------------------------------------------------------------------------------------------------------
# install-awscli
# parameters: [INSTALL_AWS] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-awscli.sh
#-------------------------------------------------------------------------------------------------------------
# install-go
# parameters: [INSTALL_GO] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-go.sh
#-------------------------------------------------------------------------------------------------------------
# install-java
# parameters: [INSTALL_JAVA] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-java.sh
#-------------------------------------------------------------------------------------------------------------
# install-kubectl
# parameters: [INSTALL_KUBECTL] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-kubectl.sh
#-------------------------------------------------------------------------------------------------------------
# install-node
# parameters: [INSTALL_NODE] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-node.sh
#-------------------------------------------------------------------------------------------------------------
# install-python
# parameters: [INSTALL_PYTHON] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-python.sh
#-------------------------------------------------------------------------------------------------------------
# install-ruby
# parameters: [INSTALL_RUBY] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-ruby.sh
#-------------------------------------------------------------------------------------------------------------
# install-rust
# parameters: [INSTALL_RUST] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-rust.sh
#-------------------------------------------------------------------------------------------------------------
# install-terraform
# parameters: [INSTALL_TERRAFORM] true or false
#-------------------------------------------------------------------------------------------------------------
bash ./setup-scripts/install-terraform.sh
#-------------------------------------------------------------------------------------------------------------
# print ssh
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
#-------------------------------------------------------------------------------------------------------------
if [ -d "$HOME/.ssh" ]; then
echo " ____ ____ _ _ _ "
echo " / ___/ ___|| | | | | | _____ _ _ "
echo " \___ \___ \| |_| | | |/ / _ \ | | |"
echo " ___) |__) | _ | | < __/ |_| |"
echo " |____/____/|_| |_| |_|\_\___|\__, |"
echo " |___/ "
cat "$HOME"/.ssh/id_ed25519.pub
echo "Print SSH key..Done!"
fi
#-------------------------------------------------------------------------------------------------------------
# print gpg
# https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account
#-------------------------------------------------------------------------------------------------------------
if [ -d "$HOME/.gnupg" ]; then
echo " ____ ____ ____ _ "
echo " / ___| _ \ / ___| | | _____ _ _ "
echo " | | _| |_) | | _ | |/ / _ \ | | |"
echo " | |_| | __/| |_| | | < __/ |_| |"
echo " \____|_| \____| |_|\_\___|\__, |"
echo " |___/ "
gpg --armor --export "$(gpg --list-secret-keys --with-colons | awk -F: '$1 == "sec" {print $5}')"
echo "Print GPG key...Done!"
fi