AutoYADM commit: 2025-03-28 18:45:08
This commit is contained in:
parent
393973db39
commit
4606237776
78 changed files with 2856 additions and 1 deletions
18
.config/fish/functions/__gitnow_clone_params.fish
Normal file
18
.config/fish/functions/__gitnow_clone_params.fish
Normal file
|
@ -0,0 +1,18 @@
|
|||
# GitNow — Speed up your Git workflow. 🐠
|
||||
# https://github.com/joseluisq/gitnow
|
||||
|
||||
function __gitnow_clone_params
|
||||
set -l repo
|
||||
|
||||
if count $argv >/dev/null
|
||||
if test (count $argv) -gt 1
|
||||
set repo $argv[1]/$argv[2]
|
||||
else if echo $argv | LC_ALL=C command grep -q -E '^([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)$'
|
||||
set repo $argv
|
||||
else
|
||||
set repo "%S/$argv"
|
||||
end
|
||||
end
|
||||
|
||||
echo $repo
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue