mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-31 15:25:15 +08:00
__fish_indent: Cache fish_indent
location
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
This commit is contained in:
parent
7bb6ce5156
commit
8447c32d65
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user