-
Notifications
You must be signed in to change notification settings - Fork 2
/
install_apps
executable file
·98 lines (83 loc) · 2.76 KB
/
install_apps
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
#!/bin/sh
# configent (https://github.com/raas-dev/configent)
# One command automated macOS/Linux laptop/VM/container bootstrapper.
#
# Copyright(C) 2016- Anssi Syrjäsalo (http://a.syrjasalo.com)
# Licensed under GNU Lesser General Public License v3 (LGPL-3.0).
trap "printf '\nCaught ^C from user - exiting now\n' ; exit 130" INT
this_path=$(cd "$(dirname "$0")" && pwd)
bin_path="$this_path/bin"
if [ "$(uname -s)" = 'Darwin' ]; then
"$bin_path/install_apps_macos"
if [ "$CASKS" != 'false' ]; then
"$bin_path/install_apps_cask"
else
printf "CASKS=false and on macOS, won't install casks.\n"
fi
elif [ "$(uname -s)" = 'Linux' ]; then
# zypper is aliased as apt-get, thus it has to come before real apt-get!
if command -v zypper >/dev/null; then
"$bin_path/install_apps_zypper"
elif command -v apt-get >/dev/null; then
"$bin_path/install_apps_apt"
"$bin_path/install_docker_rootless"
#"$bin_path/install_docker"
elif command -v dnf >/dev/null; then
"$bin_path/install_apps_yum"
elif command -v pacman >/dev/null; then
"$bin_path/install_apps_pacman"
elif command -v apk >/dev/null; then
"$bin_path/install_apps_apk"
#printf "Snap is not available on Alpine Linux, SNAPS=false forced.\n"
#export SNAPS="false"
fi
#if [ "$SNAPS" != 'false' ]; then
# "$bin_path/install_apps_snap"
#else
# printf "SNAPS=false and on Linux, won't install snaps.\n"
#fi
if [ "$FLATPAKS" != 'false' ]; then
"$bin_path/install_apps_flatpak"
else
printf "FLATPAKS=false and on Linux, won't install flatpaks.\n"
fi
else
printf "\nError: Neither macOS nor apt, yum, zypper, pacman or apk present.\n"
exit 1
fi
# install Zsh if brew is available, always install Zsh plugins
"$bin_path/install_zsh"
# install asdf, asdf language plugin and language version in .tool-versions
"$bin_path/install_rust"
"$bin_path/install_go"
"$bin_path/install_nodejs"
"$bin_path/install_python"
"$bin_path/install_dotnet"
#"$bin_path/install_bun"
#"$bin_path/install_ruby"
#"$bin_path/install_java"
#"$bin_path/install_haskell"
# install Vim plugins
"$bin_path/install_vim"
# install Neovim if brew is available
"$bin_path/install_neovim"
# install tmux if brew is available, always install tmux plugins
"$bin_path/install_tmux"
# install Ollama
"$bin_path/install_ollama"
# install cloud development tools
"$bin_path/install_aws"
"$bin_path/install_azure"
#"$bin_path/install_gcloud"
#"$bin_path/install_terraform"
#"$bin_path/install_k8sdev"
#"$bin_path/install_cloudflare"
#"$bin_path/install_flyctl"
# install static analysis tools
"$bin_path/install_linters"
# install appsec tools such as vulnerability scanners
#"$bin_path/install_appsec"
# install GitHub CLI
#"$bin_path/install_github"
# copy ui/fonts/** to user's fonts path
"$bin_path/install_fonts"