aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fripost-docs.org6
1 files changed, 6 insertions, 0 deletions
diff --git a/fripost-docs.org b/fripost-docs.org
index 374b816..be97156 100644
--- a/fripost-docs.org
+++ b/fripost-docs.org
@@ -548,3 +548,9 @@ TODO: Add nice rules.
It is also possible to use simple git commands in /etc, e.g. `git log'.
`etckeeper' has the benefit of keeping track of file permissions, which git
by itself will not.
+
+*** Warn when /etc has uncommitted changes on logout
+
+ echo "sudo etckeeper unclean && echo \"WARNING: You have uncommitted changes in /etc\" && sudo git diff" >> ~/.bash_logout
+
+