removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
17
.antidote/functions/__antidote_initfiles
Normal file
17
.antidote/functions/__antidote_initfiles
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/zsh
|
||||
|
||||
### Get the path to a plugin's init file.
|
||||
#function __antidote_initfiles {
|
||||
emulate -L zsh; setopt local_options $_adote_funcopts
|
||||
typeset -ga reply=()
|
||||
local dir=${1:A}
|
||||
local initfiles=($dir/${dir:A:t}.plugin.zsh(N))
|
||||
[[ $#initfiles -gt 0 ]] || initfiles=($dir/*.plugin.zsh(N))
|
||||
[[ $#initfiles -gt 0 ]] || initfiles=($dir/*.zsh(N))
|
||||
[[ $#initfiles -gt 0 ]] || initfiles=($dir/*.sh(N))
|
||||
[[ $#initfiles -gt 0 ]] || initfiles=($dir/*.zsh-theme(N))
|
||||
|
||||
typeset -ga reply=($initfiles)
|
||||
printf "%s\n" ${(u)initfiles[@]}
|
||||
(( $#initfiles )) || return 1
|
||||
#}
|
||||
Loading…
Add table
Add a link
Reference in a new issue