Added motd handling (debian specific) and check if chezmoi managed files
have changes.
This commit is contained in:
parent
cf24e2f956
commit
1b30b668ed
5
dot_bashrc.d/executable_11.motd
Normal file
5
dot_bashrc.d/executable_11.motd
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
if [ -d /etc/update-motd.d ]; then
|
||||||
|
for f in /etc/update-motd.d/* ; do
|
||||||
|
. "$f"
|
||||||
|
done
|
||||||
|
fi
|
||||||
9
dot_bashrc.d/executable_12.chezmoi
Normal file
9
dot_bashrc.d/executable_12.chezmoi
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
if chezmoi >/dev/null
|
||||||
|
then
|
||||||
|
if [[ $(chezmoi diff | wc -l) != "0" ]]; then
|
||||||
|
echo
|
||||||
|
echo "== chezmoi files have changed =="
|
||||||
|
echo
|
||||||
|
chezmoi diff
|
||||||
|
fi
|
||||||
|
fi
|
||||||
Loading…
Reference in New Issue
Block a user