mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(nix): drop fish legacy support
This commit is contained in:
parent
074e78751a
commit
1bec5057c7
21 changed files with 2 additions and 2 deletions
11
nix/home/common/fish/functions/clone_to_repos.fish
Normal file
11
nix/home/common/fish/functions/clone_to_repos.fish
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue