Skip to content

Instantly share code, notes, and snippets.

@unode
Created June 17, 2016 13:43
Show Gist options
  • Save unode/01a3a66c6903c1f0085207d9edd8411b to your computer and use it in GitHub Desktop.
Save unode/01a3a66c6903c1f0085207d9edd8411b to your computer and use it in GitHub Desktop.
nix-channel-modified - Show last modified date of in-use channels
#!/bin/bash
# nix-channel-modified -- created 2016-06-17, Renato Alves
# Show last modified date of in-use channels
# @Last Change: 2016-06-17.
# @Revision: 0.1
nix-channel --list | cut -d ' ' -f 2 | xargs -I % sh -c 'echo -n % >&2 ; (wget -S -O - %/git-revision 2>&1 >/dev/null | grep Last-Modified | tail -n 1)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment