-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall_apps
executable file
·67 lines (57 loc) · 2.09 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
#!/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_brew"
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"
if [ "$ROOTFUL_DOCKER" = 'true' ] || [ -S "/var/run/docker.sock" ]; then
"$bin_path/install_docker"
else
"$bin_path/install_docker_rootless"
fi
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"
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
# assumes `zsh` is present at this point, installs Zsh plugins
# prompts to set Zsh as the default shell
# pass NONINTERACTIVE=true to skip (set by bootstrap)
"$bin_path/setup_zsh"
# assumes `vim` is present at this point, install Vundle and vim plugins
"$bin_path/setup_vundle"
# Neovim setup is not a mise postinstall script as `nvim` may already be present
"$bin_path/setup_neovim"
# install mise, and all tools which are not disabled in etc/mise/config.yml
"$bin_path/install_mise"
# install Ollama
"$bin_path/install_ollama"
# install Goose (https://block.github.io/goose/)
"$bin_path/install_goose"