ref(nix): drop fish legacy support

This commit is contained in:
Léana 江 2024-01-19 20:11:36 +01:00 committed by Léana 江
parent 074e78751a
commit 1bec5057c7
21 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,11 @@
function clone_to_repos
if count $argv > /dev/null
set name_repo (echo $argv | sed -E 's/.*[:\/]([[:alnum:]._-]+)\/([[:alnum:]._-]+).git$/\1 \2/')
set name (echo $name_repo | cut -d ' ' -f1)
set repo (echo $name_repo | cut -d ' ' -f2)
mkdir -p $REPOS_PATH/$name
git clone $argv $REPOS_PATH/$name/$repo
else
echo "Please provide a git url"
end
end