Move parts of the command description lookup code to a shellscript function

darcs-hash:20060203172736-ac50b-95430eb4ca0d7ee2859237e8543a4e0883349fdb.gz
This commit is contained in:
axel
2006-02-04 03:27:36 +10:00
parent f71cd494de
commit f13262d87e
3 changed files with 23 additions and 59 deletions

View File

@@ -247,6 +247,13 @@ function vared -d "Edit variable value"
end
end
#
# This function is used internally by the fish command completion code
#
function __fish_describe_command -d "Command used to find descriptions for commands"
apropos $argv | sed -ne "s/^$argv\([^ ]*\) *(1) *- \(.*\)\$/$argv\1"\t"\2/p"
end
#
# This function is bound to Alt-L, it is used to list the contents of