mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-15 12:13:28 +00:00
fix: use real target if fishfile is a symbolic link; close #460
This commit is contained in:
parent
2a6c36b8a9
commit
73505e74cb
@ -159,6 +159,8 @@ function _fisher_commit
|
||||
if test ! -e "$fishfile"
|
||||
command touch $fishfile
|
||||
echo "created empty fishfile in $fishfile" | command sed "s|$HOME|~|" >&2
|
||||
else if test -L "$fishfile"
|
||||
set fishfile (command readlink $fishfile)
|
||||
end
|
||||
_fisher_fishfile_indent (echo -s $argv\;) < $fishfile > $fishfile@
|
||||
command mv -f $fishfile@ $fishfile
|
||||
|
Loading…
Reference in New Issue
Block a user