aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/func.bash
diff options
context:
space:
mode:
Diffstat (limited to 'docker/debian-dev/bootstrap/func.bash')
-rw-r--r--docker/debian-dev/bootstrap/func.bash19
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/func.bash b/docker/debian-dev/bootstrap/func.bash
new file mode 100644
index 0000000..7782035
--- /dev/null
+++ b/docker/debian-dev/bootstrap/func.bash
@@ -0,0 +1,19 @@
+is_true() {
+ if [[ "$1" =~ 1|on|true ]]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
+append-bash-profile() {
+ cat "/bootstrap/bash/$1" >> /home/$CRUPEST_DEBIAN_DEV_USER/.bash_profile
+}
+
+append-bashrc() {
+ cat "/bootstrap/bash/$1" >> /home/$CRUPEST_DEBIAN_DEV_USER/.bashrc
+}
+
+copy-home-dot-file() {
+ cp "/bootstrap/home-dot/$1" "/home/$CRUPEST_DEBIAN_DEV_USER/.$1"
+}