summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorache <ache@ache.one>2023-12-11 03:02:02 +0100
committerache <ache@ache.one>2023-12-11 03:02:02 +0100
commit286e9242ba34f2b2e98d7a9ec48a40ddff2c9053 (patch)
tree25e50a1c793e4203c3b5b34250be20aee04fa5c4 /functions
parentLink speed monitor (diff)
Add a function to improve completion descriptions
Diffstat (limited to 'functions')
-rw-r--r--functions/load-em.fish8
1 files changed, 8 insertions, 0 deletions
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