mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(fish): simplified scripts
- removed sd as dependency (use sed instead) - simplified tmux_sessionizer's logic (turned out that primeagen did some redundant stuff)
This commit is contained in:
parent
4af2cf013d
commit
ac817d08fb
4 changed files with 25 additions and 42 deletions
|
|
@ -1,6 +1,6 @@
|
|||
function clone_to_repos
|
||||
if count $argv > /dev/null
|
||||
set name_repo (echo $argv | sd -p '.*[:/]([\w\d._-]+)/([\w\d._-]+).git$' '$1 $2')
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue