removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
33
.antidote/functions/antidote-init
Normal file
33
.antidote/functions/antidote-init
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/zsh
|
||||
|
||||
### Initialize the shell for dynamic bundles.
|
||||
#
|
||||
# usage: antidote init [-h|--help]
|
||||
# source <(antidote init)
|
||||
#
|
||||
# This function changes how the `antidote` command works by sourcing the results of
|
||||
# `antidote bundle` instead of just generating the Zsh script.
|
||||
#function antidote-init {
|
||||
local o_help
|
||||
zparseopts $_adote_zparopt_flags -- h=o_help -help=h || return 1
|
||||
|
||||
if (( $#o_help )); then
|
||||
antidote-help init
|
||||
return
|
||||
fi
|
||||
|
||||
local script=(
|
||||
'#!/usr/bin/env zsh'
|
||||
'function antidote {'
|
||||
' case "$1" in'
|
||||
' bundle)'
|
||||
' source <( antidote-main $@ ) || antidote-main $@'
|
||||
' ;;'
|
||||
' *)'
|
||||
' antidote-main $@'
|
||||
' ;;'
|
||||
' esac'
|
||||
'}'
|
||||
)
|
||||
printf "%s\n" "${script[@]}"
|
||||
#}
|
||||
Loading…
Add table
Add a link
Reference in a new issue