summaryrefslogtreecommitdiffstats
path: root/nix-script-show-generation.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nix-script-show-generation.sh')
-rwxr-xr-xnix-script-show-generation.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/nix-script-show-generation.sh b/nix-script-show-generation.sh
index 5924846..27320ad 100755
--- a/nix-script-show-generation.sh
+++ b/nix-script-show-generation.sh
@@ -10,6 +10,15 @@ usage() {
-u Show user generation (default)
-h Show this help and exit
+ Show the number of the current generations. Defaults to user
+ profile, but system profile can be checked as well.
+
+ Example usage:
+
+ # To show the system generation which is current.
+ # With verbosity on.
+ nix-script -v show-generations -s
+
$(help_end)
EOS
}