Update 8 files
- /home/.chezmoitemplates/universal/profile-inline - /home/.chezmoitemplates/universal/logg-inline - /home/.chezmoitemplates/universal/logg-compat - /home/.chezmoitemplates/universal/logg-before - /home/.chezmoitemplates/universal/logg - /home/.chezmoitemplates/universal/profile - /home/.chezmoitemplates/universal/profile-before - /home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl
This commit is contained in:
parent
6c7abd656b
commit
36412a64ca
8 changed files with 13 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
PATH="$HOME/.local/bin:$PATH"
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
|
|
|
@ -1 +1 @@
|
|||
. /tmp/tmp-logg
|
||||
. /tmp/tmp-logg
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
if command -v logg > /dev/null; then
|
||||
alias logg='echo'
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
. "$HOME/.bashrc"
|
||||
. "$HOME/.bashrc"
|
||||
|
|
|
@ -1 +1 @@
|
|||
. /tmp/tmp-profile
|
||||
. /tmp/tmp-profile
|
||||
|
|
|
@ -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"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
|
Loading…
Reference in a new issue