summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-06-15 10:42:35 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-06-19 15:16:01 +0200
commit2ed22525d324f3dd6cb92f7f17c68ccf62d08969 (patch)
tree6111212d916e0010042450fba2148b4fa9be5aa3
parent4ce68819b673eb4ec40fbd49d6e5e0aae1205e37 (diff)
utils: Add function to get channel names
-rw-r--r--nix-utils.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/nix-utils.sh b/nix-utils.sh
index de1f76f..ff4824f 100644
--- a/nix-utils.sh
+++ b/nix-utils.sh
@@ -143,6 +143,13 @@ current_channel_generation() {
}
#
+# Get the channel names
+#
+channel_names() {
+ sudo nix-channel --list | cut -d " " -f 1
+}
+
+#
# Ask the user whether to continue or not
#
continue_question() {