aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2011-01-12 11:47:01 +0100
committerStefan Kangas <skangas@skangas.se>2011-01-12 11:47:01 +0100
commit36e90956a9c44d517fc0bfc01cf511693dce779a (patch)
tree615aed19829b3e2c41ad580f1e18bc19c4531ce5
parentc18fca9f709a6e9425e4b9baab0287fa81caa59b (diff)
Add info to warn when /etc has uncommitted
-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
+
+