From 286e9242ba34f2b2e98d7a9ec48a40ddff2c9053 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 11 Dec 2023 03:02:02 +0100 Subject: Add a function to improve completion descriptions --- functions/load-em.fish | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 functions/load-em.fish (limited to 'functions') diff --git a/functions/load-em.fish b/functions/load-em.fish new file mode 100644 index 0000000..bde7153 --- /dev/null +++ b/functions/load-em.fish @@ -0,0 +1,8 @@ +function load-em --description 'Loads Fish shell function descriptions.' +# Load function information so it shows up in auto completion +# Original from https://github.com/fish-shell/fish-shell/issues/1915#issuecomment-72315918 + + for i in (functions | tr , ' ') + functions $i > /dev/null + end +end -- cgit v1.2.3