fix: don't strip github.com from local paths; fix #472

pull/480/head
Joe George 6 years ago committed by Jorge Bucaran
parent 1d82bee9c2
commit 28aaa277e0

@ -349,7 +349,7 @@ end
function _fisher_fishfile_indent -a pkgs
command awk -v PWD=$PWD -v HOME=$HOME -v PKGS="$pkgs" '
function normalize(s) {
gsub(/^[ \t]*|[ \t]*$|https?:\/\/|github\.com\/|\.git$|\/$/, "", s)
gsub(/^[ \t]*|[ \t]*$|https?:\/\/|^[ \t]*github\.com\/|\.git$|\/$/, "", s)
sub(/^\.\//, PWD"/", s)
sub(HOME, "~", s)
return s

Loading…
Cancel
Save