From e4f07fe010e4c294d35fd96a65ac6f3e17c6a1a4 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 4 Oct 2022 17:01:19 +0200 Subject: [PATCH] Stop using alias for fish_indent/fish_key_reader --- share/functions/fish_indent.fish | 6 ++++-- share/functions/fish_key_reader.fish | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/share/functions/fish_indent.fish b/share/functions/fish_indent.fish index 403d598fb..5f0e0ab7e 100644 --- a/share/functions/fish_indent.fish +++ b/share/functions/fish_indent.fish @@ -2,6 +2,8 @@ # came with this fish. This will happen one time. command -sq fish_indent and command fish_indent --version 2>&1 | string match -rq $version -# if alias doesn't define the function here, this is an autoloaded "nothing". +# if we don't define the function here, this is an autoloaded "nothing". # the command (if there is one) will be used by default. -or alias fish_indent=(string escape $__fish_bin_dir/fish_indent) +or function fish_indent + $__fish_bin_dir/fish_indent $argv +end diff --git a/share/functions/fish_key_reader.fish b/share/functions/fish_key_reader.fish index 1190b0c67..387072c47 100644 --- a/share/functions/fish_key_reader.fish +++ b/share/functions/fish_key_reader.fish @@ -2,6 +2,8 @@ # came with this fish. This will happen one time. command -sq fish_key_reader and command fish_key_reader --version 2>&1 | string match -rq -- $version -# if alias doesn't define the function here, this is an autoloaded "nothing". +# if we don't define the function here, this is an autoloaded "nothing". # the command (if there is one) will be used by default. -or alias fish_key_reader=(string escape $__fish_bin_dir/fish_key_reader) +or function fish_key_reader + $__fish_bin_dir/fish_key_reader $argv +end