2005-09-20 21:31:55 +08:00
|
|
|
#
|
|
|
|
# Completions for the help command
|
|
|
|
#
|
|
|
|
|
2006-07-10 07:32:49 +08:00
|
|
|
for i in case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h2><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p")
|
2007-01-16 09:18:28 +08:00
|
|
|
complete -c help -x -a $i --description "Help for the specified command"
|
2005-10-22 18:06:05 +08:00
|
|
|
end
|
|
|
|
|
2006-12-06 21:10:20 +08:00
|
|
|
complete -c help -x -a syntax -d (N_ "Introduction to the fish syntax" )
|
|
|
|
complete -c help -x -a todo -d (N_ "Incomplete aspects of fish" )
|
|
|
|
complete -c help -x -a bugs -d (N_ "Known fish bugs" )
|
|
|
|
complete -c help -x -a history -d (N_ "Help on how to reuse previously entered commands" )
|
2005-09-20 21:31:55 +08:00
|
|
|
|
2007-01-16 09:18:28 +08:00
|
|
|
complete -c help -x -a completion --description "Help on how tab-completion works"
|
|
|
|
complete -c help -x -a job-control --description "Help on how job control works"
|
|
|
|
complete -c help -x -a difference --description "Summary on how fish differs from other shells"
|
2005-09-20 21:31:55 +08:00
|
|
|
|
2007-01-16 09:18:28 +08:00
|
|
|
complete -c help -x -a prompt --description "Help on how to set the prompt"
|
|
|
|
complete -c help -x -a title --description "Help on how to set the titlebar message"
|
|
|
|
complete -c help -x -a killring --description "Help on how to copy and paste"
|
|
|
|
complete -c help -x -a editor --description "Help on editor shortcuts"
|
|
|
|
complete -c help -x -a variables --description "Help on environment variables"
|
|
|
|
complete -c help -x -a color --description "Help on setting syntax highlighting colors"
|
2005-09-20 21:31:55 +08:00
|
|
|
|
2007-01-16 09:18:28 +08:00
|
|
|
complete -c help -x -a globbing --description "Help on parameter expansion (Globbing)"
|
|
|
|
complete -c help -x -a expand --description "Help on parameter expansion (Globbing)"
|
|
|
|
complete -c help -x -a expand-variable --description "Help on variable expansion \$VARNAME"
|
|
|
|
complete -c help -x -a expand-home --description "Help on home directory expansion ~USER"
|
|
|
|
complete -c help -x -a expand-brace --description "Help on brace expansion {a,b,c}"
|
|
|
|
complete -c help -x -a expand-wildcard --description "Help on wildcard expansion *.*"
|
|
|
|
complete -c help -x -a expand-command-substitution --description "Help on command substitution (SUBCOMMAND)"
|
|
|
|
complete -c help -x -a expand-process --description "Help on process expansion %JOB"
|