Update 2 files

- /home/.chezmoitemplates/universal/profile-inline
- /home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl
This commit is contained in:
Brian Zalewski 2023-01-25 04:59:29 +00:00
parent 752f219b9a
commit be33940eb8
2 changed files with 16 additions and 20 deletions

View file

@ -2,25 +2,21 @@
#!/usr/bin/env bash #!/usr/bin/env bash
### Ensure /tmp/tmp-profile is created and owned by root ### 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
# Add pre-scaffolding profile to /tmp/tmp-profile so it's easier to navigate through scripts cat << EOF > /tmp/tmp-profile
cat << EOF > /tmp/tmp-profile {{ includeTemplate "universal/profile-inline" }}
{{ includeTemplate "universal/profile-inline" }} EOF
EOF
# Make /tmp/tmp-profile owned by root to prevent tampering # Make /tmp/tmp-profile owned by root to prevent tampering
sudo chown root /tmp/tmp-profile sudo chown root /tmp/tmp-profile
fi
### Ensure /tmp/tmp-logg is created and owned by root ### Ensure /tmp/tmp-logg is created and owned by root
if [ ! -f /tmp/tmp-logg ]; then # Add pre-scaffolding /tmp/tmp-logg
# Add pre-scaffolding /tmp/tmp-logg cat << EOF > /tmp/tmp-logg
cat << EOF > /tmp/tmp-logg {{ includeTemplate "universal/logg-inline" }}
{{ includeTemplate "universal/logg-inline" }} EOF
EOF
# Make /tmp/tmp-logg owned by root to prevent tampering # Make /tmp/tmp-logg owned by root to prevent tampering
sudo chown root /tmp/tmp-logg sudo chown root /tmp/tmp-logg
fi
{{ end -}} {{ end -}}

View file

@ -13,7 +13,7 @@ XDG_CACHE_HOME="$HOME/.cache"
XDG_DATA_DIR="$HOME/.local/share" XDG_DATA_DIR="$HOME/.local/share"
### Ensure Homebrew PATHs ### Ensure Homebrew PATHs
if [ -d /home/linuxbrew/.linuxbrew/bin ]; then if [ -d "/home/linuxbrew/.linuxbrew/bin" ]; then
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew" export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar" export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew" export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew"
@ -21,10 +21,10 @@ if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:" export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}" export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
export WHALEBREW_INSTALL_PATH="/home/linuxbrew/.linuxbrew/whalebrew" export WHALEBREW_INSTALL_PATH="/home/linuxbrew/.linuxbrew/whalebrew"
elif [ -f /opt/homebrew/bin/brew ]; then elif [ -f "/usr/local/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [ -f /usr/local/bin/brew ]; then
eval "$(/usr/local/bin/brew shellenv)" eval "$(/usr/local/bin/brew shellenv)"
elif [ -f "/opt/homebrew/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi fi
### Ensure ~/.local/bin in PATH ### Ensure ~/.local/bin in PATH