1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

home-manager: sort list packages output

Fixes #4788
This commit is contained in:
Robert Helgesson 2023-12-18 23:05:17 +01:00
parent e4dba0bd01
commit e8aaced73e
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -722,7 +722,7 @@ function doListPackages() {
local outPath
outPath="$($LIST_OUTPATH_CMD | grep -o '/.*home-manager-path$')"
if [[ -n "$outPath" ]] ; then
nix-store -q --references "$outPath" | sed 's/[^-]*-//'
nix-store -q --references "$outPath" | sed 's/[^-]*-//' | sort --ignore-case
else
_i 'No home-manager packages seem to be installed.' >&2
fi