mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 22:21:15 -03:00
__fish_indent: Cache fish_indent location
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
function __fish_indent
|
||||
set -l dir "$(path dirname -- (status fish-path 2>/dev/null))"
|
||||
if command -v $dir/fish_indent >/dev/null
|
||||
set -l dir "$(path dirname -- (status fish-path 2>/dev/null))"
|
||||
|
||||
if command -v $dir/fish_indent >/dev/null
|
||||
function __fish_indent --wraps fish_indent --inherit-variable dir
|
||||
$dir/fish_indent $argv
|
||||
else
|
||||
end
|
||||
else
|
||||
function __fish_indent --wraps fish_indent
|
||||
fish_indent $argv
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user