Skip to content

Commit 52b486a

Browse files
committed
Formatting: move . prelude.sh to the first line everywhere
1 parent 2f4d454 commit 52b486a

24 files changed

+47
-39
lines changed

Android_13/10packages.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
2-
# BASE IMAGE Android 13
3-
42
. ../prelude.sh
3+
# BASE IMAGE Android 13
54

65
# TODO add toybox https://android.googlesource.com/platform/external/toybox/+/b20c80b/README
76

Android_13/20configs.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
2-
# BASE IMAGE: Android 13
3-
42
. ../prelude.sh
3+
# BASE IMAGE: Android 13
54

65
if [ ! -d ~/storage ]; then
76
termux-setup-storage

Android_13/run_all.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
2-
# BASE IMAGE: Android 13
3-
42
. ../prelude.sh
3+
# BASE IMAGE: Android 13
54

65
if uname -a | grep Android; then
76
# TODO Move the if to a separate script file

CLI_Ubuntu/10interactive.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/bin/bash
2+
. ../prelude.sh
23
# Stuff that requires user interaction and cannot be done by a script yet.
34
# This script is being run first i.e. before anything else, so that all
45
# user interaction is finished as quickly as possible.
56

6-
. ../prelude.sh
7-
87
function interactive_part
98
{
109
if ! gh auth status; then

CLI_Ubuntu/20packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
2+
. ../prelude.sh
23
# The script should not require any user input and should be idempotent.
34
# TODO apt-get install linux-headers-$(uname -r) does not work in WSL
45
# TODO move the package lists to external files
56
# TODO add repos and packates that PopOS has: https://pop.system76.com/
6-
. ../prelude.sh
77

88
export DEBIAN_FRONTEND=noninteractive
99
# TODO "Which services should be restarted?" prompt is still present in VM

CLI_Ubuntu/30source_packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
2+
. ../prelude.sh
23
# The script should not require any user input and should be idempotent.
34
# TODO apt-get install linux-headers-$(uname -r) does not work in WSL
45
# TODO move the package lists to external files
56
# TODO add repos and packates that PopOS has: https://pop.system76.com/
6-
. ../prelude.sh
77

88
mkdir -p ~/localSW
99
pushd ~/localSW/

CLI_Ubuntu/40configs.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
2-
# The script should not require any user input and should be idempotent.
3-
42
. ../prelude.sh
3+
# The script should not require any user input and should be idempotent.
54

65
# ==== Misc ====
76
sudo update-alternatives --set editor /usr/bin/nvim

CLI_Ubuntu/run_all.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
2-
# This script should be idempotent.
3-
42
. ../prelude.sh
3+
# This script should be idempotent.
54

65
if distro_is ubuntu && distro_version_ge 24; then
76
# stuff that requires user input can be turned off by `--noninteractive` CLI param

DistroAgnostic/10dotfiles.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
. ../prelude.sh
23
# The script should not require any user input and should be idempotent.
34
# BASE IMAGE: ALL
45
# Dotfiles are managed via bare git repository.
@@ -7,8 +8,6 @@
78
# TODO simplify
89
# TODO automatically set upstream branch (git push --set-upstream origin devel)
910

10-
. ../prelude.sh
11-
1211
function dot
1312
{
1413
git --git-dir="${HOME}/.dotfiles/" --work-tree="${HOME}" "$@"

DistroAgnostic/20git_config.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
. ../prelude.sh
43

54
git config --global core.editor "nvim"

0 commit comments

Comments
 (0)