diff --git a/share/functions/type.fish b/share/functions/type.fish index 138783f71..ed113ea5d 100644 --- a/share/functions/type.fish +++ b/share/functions/type.fish @@ -88,8 +88,11 @@ function type --description "Print the type of a command" switch $mode case normal printf (_ '%s is a function with definition\n') $i - functions $i - + if isatty stdout + functions $i | fish_indent --ansi + else + functions $i | fish_indent + end case type echo (_ 'function') end