diff --git a/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl b/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl index c8270cf1..29f1da38 100644 --- a/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl +++ b/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl @@ -4,8 +4,7 @@ ### Ensure /tmp/tmp-profile is created and owned by root if [ ! -f /tmp/tmp-profile ]; then # Add pre-scaffolding profile to /tmp/tmp-profile so it's easier to navigate through scripts - cat << EOF > /tmp/tmp-profile -#!/usr/bin/env bash +cat << EOF > /tmp/tmp-profile {{ includeTemplate "universal/profile-inline" }} EOF @@ -16,8 +15,7 @@ fi ### Ensure /tmp/tmp-logg is created and owned by root if [ ! -f /tmp/tmp-logg ]; then # Add pre-scaffolding /tmp/tmp-logg - cat << EOF > /tmp/tmp-logg -#!/usr/bin/env bash +cat << EOF > /tmp/tmp-logg {{ includeTemplate "universal/logg-inline" }} EOF diff --git a/home/.chezmoitemplates/universal/logg b/home/.chezmoitemplates/universal/logg index 008f9961..ba35e6d1 100644 --- a/home/.chezmoitemplates/universal/logg +++ b/home/.chezmoitemplates/universal/logg @@ -1 +1 @@ -PATH="$HOME/.local/bin:$PATH" \ No newline at end of file +PATH="$HOME/.local/bin:$PATH" diff --git a/home/.chezmoitemplates/universal/logg-before b/home/.chezmoitemplates/universal/logg-before index 75f78517..6518735c 100644 --- a/home/.chezmoitemplates/universal/logg-before +++ b/home/.chezmoitemplates/universal/logg-before @@ -1 +1 @@ -. /tmp/tmp-logg \ No newline at end of file +. /tmp/tmp-logg diff --git a/home/.chezmoitemplates/universal/logg-compat b/home/.chezmoitemplates/universal/logg-compat index 7ea722dc..93501128 100644 --- a/home/.chezmoitemplates/universal/logg-compat +++ b/home/.chezmoitemplates/universal/logg-compat @@ -1,3 +1,3 @@ if command -v logg > /dev/null; then alias logg='echo' -fi \ No newline at end of file +fi diff --git a/home/.chezmoitemplates/universal/logg-inline b/home/.chezmoitemplates/universal/logg-inline index 290fb118..89f46511 100644 --- a/home/.chezmoitemplates/universal/logg-inline +++ b/home/.chezmoitemplates/universal/logg-inline @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # @description Installs glow (a markdown renderer) from GitHub releases # @example installGlow installGlow() { @@ -163,4 +165,4 @@ logg() { else "$GUM_PATH" style " $("$GUM_PATH" style --foreground="#00ff00" "▶") $("$GUM_PATH" style --bold "$(format "$TYPE")")" fi -} \ No newline at end of file +} diff --git a/home/.chezmoitemplates/universal/profile b/home/.chezmoitemplates/universal/profile index 689e03d3..3ee6b293 100644 --- a/home/.chezmoitemplates/universal/profile +++ b/home/.chezmoitemplates/universal/profile @@ -1 +1 @@ -. "$HOME/.bashrc" \ No newline at end of file +. "$HOME/.bashrc" diff --git a/home/.chezmoitemplates/universal/profile-before b/home/.chezmoitemplates/universal/profile-before index 2a7ca617..65a84562 100644 --- a/home/.chezmoitemplates/universal/profile-before +++ b/home/.chezmoitemplates/universal/profile-before @@ -1 +1 @@ -. /tmp/tmp-profile \ No newline at end of file +. /tmp/tmp-profile diff --git a/home/.chezmoitemplates/universal/profile-inline b/home/.chezmoitemplates/universal/profile-inline index 5f81fee9..563e46a2 100644 --- a/home/.chezmoitemplates/universal/profile-inline +++ b/home/.chezmoitemplates/universal/profile-inline @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + ### Source .bashrc if it is present if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" @@ -26,4 +28,4 @@ elif [ -f /usr/local/bin/brew ]; then fi ### Ensure ~/.local/bin in PATH -export PATH="$HOME/.local/bin:$PATH" \ No newline at end of file +export PATH="$HOME/.local/bin:$PATH"