mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 15:11:04 +00:00
home-manager: minor cleanup output from generations
This commit is contained in:
parent
356c0bf751
commit
187a12e90a
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,8 @@ function doSwitch() {
|
||||||
function doListGens() {
|
function doListGens() {
|
||||||
pushd "/nix/var/nix/profiles/per-user/$USER" > /dev/null
|
pushd "/nix/var/nix/profiles/per-user/$USER" > /dev/null
|
||||||
ls --color=yes -gG --sort time home-manager-*-link \
|
ls --color=yes -gG --sort time home-manager-*-link \
|
||||||
| cut -d' ' -f 4-
|
| cut -d' ' -f 4- \
|
||||||
|
| sed -E 's/home-manager-([[:digit:]]*)-link/id \1/'
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue