aboutsummaryrefslogtreecommitdiffhomepage
path: root/init
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-04 03:27:36 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-04 03:27:36 +1000
commitf13262d87ea977a023d9f031407aa38c0e576447 (patch)
tree81b6a513f662ecf610caa4076b252cf0f1fa6d41 /init
parentf71cd494def1ef2e7078cf1fdf617e9600f10234 (diff)
Move parts of the command description lookup code to a shellscript function
darcs-hash:20060203172736-ac50b-95430eb4ca0d7ee2859237e8543a4e0883349fdb.gz
Diffstat (limited to 'init')
-rw-r--r--init/fish_function.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/init/fish_function.fish b/init/fish_function.fish
index 6a8e436e..4a4c8af3 100644
--- a/init/fish_function.fish
+++ b/init/fish_function.fish
@@ -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