fix: add local packages to fishfile

pull/531/head
Jorge Bucaran 5 years ago
parent 61f679e6a3
commit 8cb6692785
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -48,7 +48,7 @@ function fisher -a cmd -d "fish package manager"
set -l file (_fisher_fmt <$fisher_path/fishfile | _fisher_diff R)
_fisher_ls | _fisher_fmt | command awk -v FILE="$file" "
BEGIN { for (n = split(FILE, f); ++i <= n;) file[f[i]] } \$0 in file && /$argv[1]/
"
" | sed "s|$HOME|~|"
end
case self-update
_fisher_self_update (status -f)
@ -115,7 +115,7 @@ function _fisher_ls
end
function _fisher_fmt
command sed "s|^[[:space:]]*||;s|^$fisher_config/||;s|^$HOME|~|;s|^\.\/*|$PWD/|;s|^github\.com/||;s|^https*://||;s|/*\$||"
command sed "s|^[[:space:]]*||;s|^$fisher_config/||;s|^~|$HOME|;s|^\.\/*|$PWD/|;s|^github\.com/||;s|^https*:/*||;s|/*\$||"
end
function _fisher_version -a file
@ -225,7 +225,7 @@ function _fisher_commit -a cmd
end
end
printf "%s\n" (_fisher_fmt <$fishfile | _fisher_diff W $cmd $actual_pkgs) >$fishfile
printf "%s\n" (_fisher_fmt <$fishfile | _fisher_diff W $cmd $actual_pkgs | sed "s|$HOME|~|") >$fishfile
_fisher_complete

Loading…
Cancel
Save