Hallo.
Folgendes Skript ist für die Bash gedacht. Könnte das jemand syntaxkonform für die (t)csh übersetzen? ich möchte autocompletion für "befehl" einrichten.
so klappt das nicht, wenn ich es in meine csh-config eintrage. Danke im Voraus.
Folgendes Skript ist für die Bash gedacht. Könnte das jemand syntaxkonform für die (t)csh übersetzen? ich möchte autocompletion für "befehl" einrichten.
_befehl()
{
local cu prev opts
compreply=()
cur="${comp_words[comp_cword]}"
prev="${comp_words[comp_cword-1]}"
opts=" \
option1 \
option2 \
option3 \
usw \
option99"
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
return 0
}
complete -F _befehl befehl
so klappt das nicht, wenn ich es in meine csh-config eintrage. Danke im Voraus.