mirror of
https://github.com/jorgebucaran/fisher
synced 2024-07-02 23:11:48 +02:00
fix: don't strip github.com from local paths; fix #472
This commit is contained in:
parent
1d82bee9c2
commit
28aaa277e0
|
@ -349,7 +349,7 @@ end
|
||||||
function _fisher_fishfile_indent -a pkgs
|
function _fisher_fishfile_indent -a pkgs
|
||||||
command awk -v PWD=$PWD -v HOME=$HOME -v PKGS="$pkgs" '
|
command awk -v PWD=$PWD -v HOME=$HOME -v PKGS="$pkgs" '
|
||||||
function normalize(s) {
|
function normalize(s) {
|
||||||
gsub(/^[ \t]*|[ \t]*$|https?:\/\/|github\.com\/|\.git$|\/$/, "", s)
|
gsub(/^[ \t]*|[ \t]*$|https?:\/\/|^[ \t]*github\.com\/|\.git$|\/$/, "", s)
|
||||||
sub(/^\.\//, PWD"/", s)
|
sub(/^\.\//, PWD"/", s)
|
||||||
sub(HOME, "~", s)
|
sub(HOME, "~", s)
|
||||||
return s
|
return s
|
||||||
|
|
Loading…
Reference in a new issue