~razzi/fish-functions

2fc5649a602f771e4d57bb1afeccab3fc6379904 — Razzi Abuissa 2 months ago e4d3ea0
Make init-sourcehut use new function add-sourcehut-remote
2 files changed, 4 insertions(+), 1 deletions(-)

A functions/add-sourcehut-remote.fish
M functions/init-sourcehut.fish
A functions/add-sourcehut-remote.fish => functions/add-sourcehut-remote.fish +3 -0
@@ 0,0 1,3 @@
function add-sourcehut-remote
    git remote add origin git@git.sr.ht:~$USER/(curdir | string replace ' ' -)
end

M functions/init-sourcehut.fish => functions/init-sourcehut.fish +1 -1
@@ 1,5 1,5 @@
function init-sourcehut --argument _visibility
    set visibility (default $_visibility private)
    git remote add origin git@git.sr.ht:~$USER/(curdir | string replace ' ' -)
    add-sourcehut-remote
    and git push origin -o visibility=$visibility --set-upstream
end