mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-19 21:27:28 +03:00
Add branch install for dev
This commit is contained in:
parent
eafe0bf3b4
commit
743becdafe
@ -1,11 +0,0 @@
|
||||
function bench -a command times
|
||||
set -l thingToRun
|
||||
|
||||
for i in (seq $times)
|
||||
set -a thingToRun $command
|
||||
end
|
||||
|
||||
eval (string join ';' $thingToRun) >>'/dev/null'
|
||||
|
||||
math $CMD_DURATION/$times
|
||||
end
|
@ -1,4 +1,21 @@
|
||||
function local_install -a localRepo
|
||||
function tide_dev_install
|
||||
argparse 'b/branch' 'l/local' -- $argv
|
||||
|
||||
if set -q _flag_branch
|
||||
curl -s "https://raw.githubusercontent.com/IlanCosman/tide/$argv/install.fish" | source; and tide_install $argv
|
||||
return $status
|
||||
end
|
||||
|
||||
if set -q _flag_local
|
||||
_local_install $argv
|
||||
return $status
|
||||
end
|
||||
|
||||
printf '%s' 'Please indicate local/branch'
|
||||
return 1
|
||||
end
|
||||
|
||||
function _local_install -a localRepo
|
||||
if source "$localRepo/install.fish"
|
||||
cp -r "$localRepo/conf.d" $__fish_config_dir
|
||||
cp -r "$localRepo/functions" $__fish_config_dir
|
Loading…
Reference in New Issue
Block a user