-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup_ide
More file actions
executable file
·57 lines (47 loc) · 1.16 KB
/
Copy pathsetup_ide
File metadata and controls
executable file
·57 lines (47 loc) · 1.16 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
#!/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"
: "${NO_SETUP:=""}"
# run command directly, or in background when PARALLEL=true
pids=""
run() {
if [ "$PARALLEL" = 'true' ]; then
"$@" &
pids="$pids $!"
else
"$@"
fi
}
wait_batch() {
for pid in $pids; do
wait "$pid" || exit 1
done
pids=""
}
run "$bin_path/setup_fonts"
if command -v code >/dev/null; then
if [ -z "$NO_SETUP" ]; then
APP_NAME=Code BIN_NAME=code
export APP_NAME BIN_NAME
run "$bin_path/setup_code"
fi
run "$bin_path/setup_copilot"
fi
if command -v cursor >/dev/null; then
if [ -z "$NO_SETUP" ]; then
APP_NAME=Cursor BIN_NAME=cursor
export APP_NAME BIN_NAME
run "$bin_path/setup_code"
fi
run "$bin_path/setup_cursor"
fi
if command -v zed >/dev/null; then
run "$bin_path/setup_zed"
fi
wait_batch