diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-06-15 10:42:35 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-06-19 15:16:01 +0200 |
commit | 2ed22525d324f3dd6cb92f7f17c68ccf62d08969 (patch) | |
tree | 6111212d916e0010042450fba2148b4fa9be5aa3 | |
parent | 4ce68819b673eb4ec40fbd49d6e5e0aae1205e37 (diff) |
utils: Add function to get channel names
-rw-r--r-- | nix-utils.sh | 7 |
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() { |