mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
edaf011ab1
Users may install two versions of fish and configure their terminal to run the one that is second in $PATH. This is not really what I'd do but it seems reasonable. We should not need $PATH for this. Fixes #10770
8 lines
214 B
Fish
8 lines
214 B
Fish
function __fish_indent
|
|
set -l dir "$(path dirname -- (status fish-path 2>/dev/null))"
|
|
if command -v $dir/fish_indent >/dev/null
|
|
$dir/fish_indent $argv
|
|
else
|
|
fish_indent $argv
|
|
end
|
|
end
|