|
|
@ -159,12 +159,8 @@ function _fisher_commit
|
|
|
|
if test ! -e "$fishfile"
|
|
|
|
if test ! -e "$fishfile"
|
|
|
|
command touch $fishfile
|
|
|
|
command touch $fishfile
|
|
|
|
echo "created empty fishfile in $fishfile" | command sed "s|$HOME|~|" >&2
|
|
|
|
echo "created empty fishfile in $fishfile" | command sed "s|$HOME|~|" >&2
|
|
|
|
else if test -L "$fishfile"
|
|
|
|
|
|
|
|
set fishfile (command readlink $fishfile)
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
_fisher_fishfile_indent (echo -s $argv\;) < $fishfile > $fishfile@
|
|
|
|
printf "%s\n" (_fisher_fishfile_indent (echo -s $argv\;) < $fishfile) > $fishfile
|
|
|
|
command mv -f $fishfile@ $fishfile
|
|
|
|
|
|
|
|
command rm -f $fishfile@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -l expected_pkgs (_fisher_fishfile_load < $fishfile)
|
|
|
|
set -l expected_pkgs (_fisher_fishfile_load < $fishfile)
|
|
|
|
set -l added_pkgs (_fisher_pkg_fetch_all $expected_pkgs)
|
|
|
|
set -l added_pkgs (_fisher_pkg_fetch_all $expected_pkgs)
|
|
|
|