mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
fix: don't expect https:// to start lines in fishfile
This commit is contained in:
parent
2549ac1f4b
commit
4e7c9e000b
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,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?:\/\/|github\.com\/|\.git$|\/$/, "", s)
|
||||
sub(/^\.\//, PWD"/", s)
|
||||
sub(HOME, "~", s)
|
||||
return s
|
||||
|
|
Loading…
Reference in a new issue