summaryrefslogtreecommitdiffstats
path: root/useful
diff options
context:
space:
mode:
Diffstat (limited to 'useful')
-rw-r--r--useful/zsh-completion/openslx/_mltk6
1 files changed, 4 insertions, 2 deletions
diff --git a/useful/zsh-completion/openslx/_mltk b/useful/zsh-completion/openslx/_mltk
index fccceb1b..5abf68f3 100644
--- a/useful/zsh-completion/openslx/_mltk
+++ b/useful/zsh-completion/openslx/_mltk
@@ -8,12 +8,14 @@ _mltk_target_modules() {
target_modules=(`ls remote/targets/$1`)
}
-local -a targets target_modules
+local -a _targets target_modules export_dirs
_targets=(`ls remote/targets`)
+[ -d "/export" ] && export_dirs=(`ls /export`)
+
_arguments \
"--help[display help text]: :->help" \
- "-n[-n \[name\] bind mount all the local builds (remote/builds) to /export/builds or /export/\[name\]]: :->bind" \
+ "(: -)-n[-n \[name\] bind mount all the local builds (remote/builds) to /export/builds or /export/\[name\]]:Existing folders in /export:($export_dirs)" \
"*:: :->target" && return 0
if (( CURRENT == 1 )); then