Skip to content

Commit

Permalink
✨ add codeberg.org support
Browse files Browse the repository at this point in the history
Signed-off-by: Clemens Wältken <[email protected]>
  • Loading branch information
waeltken committed Sep 6, 2022
1 parent d431f45 commit 74facc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/fisher.fish
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
if set path (string replace --regex -- '^(https://)?gitlab.com/' '' \$repo[1])
set name (string split -- / \$path)[-1]
set url https://gitlab.com/\$path/-/archive/\$repo[2]/\$name-\$repo[2].tar.gz
else if set path (string replace --regex -- '^(https://)?codeberg.org/' '' \$repo[1])
set repo (string split -- \@ $plugin) || set repo[2] main
set url https://codeberg.org/\$path/archive/\$repo[2].tar.gz
else
set url https://api.github.com/repos/\$repo[1]/tarball/\$repo[2]
end
Expand Down

0 comments on commit 74facc8

Please sign in to comment.