about summary refs log tree commit diff
path: root/Completion/Darwin/Command/_open
blob: 9478dd5620e1cc1a6a50c4f9628e7d85e8bc8b16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#compdef open

local curcontext="$curcontext" state line

_arguments -C \
  '-a[specify application]:application:->open_mac_applications' \
  '-e[open with TextEdit]' \
  '*:files:_webbrowser'

if [[ -n "$state" ]]; then
  _mac_applications || _files
fi