mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
fix: add local packages to fishfile
This commit is contained in:
parent
61f679e6a3
commit
8cb6692785
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ function fisher -a cmd -d "fish package manager"
|
||||||
set -l file (_fisher_fmt <$fisher_path/fishfile | _fisher_diff R)
|
set -l file (_fisher_fmt <$fisher_path/fishfile | _fisher_diff R)
|
||||||
_fisher_ls | _fisher_fmt | command awk -v FILE="$file" "
|
_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]/
|
BEGIN { for (n = split(FILE, f); ++i <= n;) file[f[i]] } \$0 in file && /$argv[1]/
|
||||||
"
|
" | sed "s|$HOME|~|"
|
||||||
end
|
end
|
||||||
case self-update
|
case self-update
|
||||||
_fisher_self_update (status -f)
|
_fisher_self_update (status -f)
|
||||||
|
@ -115,7 +115,7 @@ function _fisher_ls
|
||||||
end
|
end
|
||||||
|
|
||||||
function _fisher_fmt
|
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
|
end
|
||||||
|
|
||||||
function _fisher_version -a file
|
function _fisher_version -a file
|
||||||
|
@ -225,7 +225,7 @@ function _fisher_commit -a cmd
|
||||||
end
|
end
|
||||||
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
|
_fisher_complete
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue