From 1211e0bafa3e435f06d8a596bb414aeed73247b7 Mon Sep 17 00:00:00 2001 From: Stefan Maric Date: Fri, 18 Jan 2019 14:55:14 +0100 Subject: [PATCH] fix: override fishfile content instead of replacing the file This allows fishfile to be a symlink, which I used to keep track of my dotfiles in a repo, and broke after upgrading to V3. --- fisher.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fisher.fish b/fisher.fish index 5976a11..b9148be 100644 --- a/fisher.fish +++ b/fisher.fish @@ -240,8 +240,7 @@ function _fisher_commit -a cmd end end - _fisher_fmt <$fishfile | _fisher_write $cmd $actual_pkgs >$fishfile. - command mv -f $fishfile. $fishfile + printf "%s\n" (_fisher_fmt <$fishfile | _fisher_write $cmd $actual_pkgs) >$fishfile _fisher_self_complete