From d6ff15479a8863724c28f94ab5cdc216a2b897c8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 22 Aug 2023 19:10:47 +0200 Subject: Port home-manager rollback function to fish --- user/settings/fish/functions/home-manager-rollback.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 user/settings/fish/functions/home-manager-rollback.fish (limited to 'user/settings/fish/functions') diff --git a/user/settings/fish/functions/home-manager-rollback.fish b/user/settings/fish/functions/home-manager-rollback.fish new file mode 100644 index 00000000..c3b585b0 --- /dev/null +++ b/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 -- cgit 1.4.1