Port home-manager rollback function to fish
Alan Pearce alan@alanpearce.eu
Tue, 22 Aug 2023 19:10:47 +0200
1 files changed, 3 insertions(+), 0 deletions(-)
A user/settings/fish/functions/home-manager-rollback.fish
@@ -0,0 +1,3 @@+function home-manager-rollback + (nix-shell -p home-manager --run 'home-manager --generations' | head -n2 | tail -n1 | field 7)/activate +end