5 # launcher script to start zaw as command
9 local cur_dir
="${this_file:A:h}"
10 source "${cur_dir}/zaw.zsh"
16 while getopts 'eh' opt
; do
24 "Usage: $0 [options] [source name]
35 if (( OPTIND
> 1 )); then
36 shift $
(( OPTIND
- 1 ))
40 if [[ $# > 0 && "${zaw_sources[$1]}" != "" ]]; then
41 zaw_args
+="${zaw_sources[$1]}"
45 # use zle-line-init to start zaw right after vared
46 function zle-line-init
() {
47 zle zaw
"${(@)zaw_args}"
56 if (( do_eval
)); then