Cleanup behavior to function when things are missing
This commit is contained in:
parent
999422da87
commit
12e3c5a470
14 changed files with 35 additions and 19 deletions
5
_home/dot_sz.shrc.d/98_chezmoi.changes
Normal file
5
_home/dot_sz.shrc.d/98_chezmoi.changes
Normal file
|
@ -0,0 +1,5 @@
|
|||
if [[ -n "$(type -fP chezmoi)" ]]; then
|
||||
CHEZMOI_OUT="$(chezmoi status || true)x"
|
||||
[[ -n "$CHEZMOI_OUT" ]] && printf "\nChezmoi changes:\n" && echo "${CHEZMOI_OUT%?}"
|
||||
unset CHEZMOI_OUT
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue