-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.gitpod.yml
More file actions
61 lines (55 loc) · 1.65 KB
/
.gitpod.yml
File metadata and controls
61 lines (55 loc) · 1.65 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
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Compile project
command: |
curl --proto '=https' --tlsv1.2 -sSfL "https://git.io/Jc9bH" | bash -s selfinstall; # Install bashbox
bashbox build --release;
touch /workspace/.binit;
if ! command -v dotsh 1>/dev/null; then {
sudo ln -sf $PWD/dotsh /usr/bin/dotsh
} fi
gp sync-done compile;
exit;
- name: Open all src/ *.sh files
command: |
gp sync-await compile;
gp ports await 23000 1>/dev/null;
for file in install.sh src/utils/* src/variables.sh src/main.sh; do {
gp open "$file";
} done
exit;
- name: Bind mount repos dir
command: |
dir="$HOME/.dotfiles/repos";
target_dir="$PWD/${dir##*/}"
if test -e "$dir"; then {
mkdir -p "$target_dir";
sudo mount --bind "$dir" "$target_dir";
} fi
exit 0;
- name: Live testing
command: |
printf "\033[3J\033c\033[3J"
# DOTFILES_TMUX_NO_TAKEOVER
gp sync-await compile;
source "$HOME/.bashbox/env";
bashbox livetest; # `livetest` is a custom project command defined in `Bashbox.sh`
- name: First-time config
command: |
printf "\033[3J\033c\033[3J"
# DOTFILES_TMUX_NO_TAKEOVER
gp sync-await compile;
source "$HOME/.bashbox/env";
if test ! -e "$HOME/.dotfiles/src/variables.sh"; then
dotsh config
else
echo "Skipped because you're already using dotsh";
exit 0
fi
vscode:
extensions:
- mads-hartmann.bash-ide-vscode
- timonwong.shellcheck
ports:
- port: 33000
onOpen: ignore