Commit e234aab3 authored by Bruno Pinto's avatar Bruno Pinto Committed by Pablo Santiago Blum de Aguiar

Remove .git$ from name when installing from URL

Support `omf install https://github.com/oh-my-fish/plugin-jump.git`
parent cc7b3212
......@@ -19,7 +19,7 @@ function omf.install -a name_or_url
set name $name_or_url
set url (cat $OMF_PATH/db/$parent_path/$name_or_url)
else
set name (basename $name_or_url | sed "s/^pkg-//;s/^plugin-//;s/^theme-//")
set name (basename $name_or_url | sed 's/^pkg-//;s/^plugin-//;s/^theme-//;s/\.git$//')
set url $name_or_url
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment