aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/type.fish
diff options
context:
space:
mode:
authorGravatar Jan Kanis <jan.code@jankanis.nl>2013-02-05 20:43:40 +0100
committerGravatar Jan Kanis <jan.code@jankanis.nl>2013-02-05 23:14:06 +0100
commite8da9999f61c7133b7387b9311068f432cbc8c47 (patch)
treee38f7c9d00cbd28b3f71bfdb421e777fa941badb /share/functions/type.fish
parente9188519023e9ae13f0c5eb97f499ba9a4c9ca85 (diff)
optimize 'alias', fixing bug #486. Also some minor optimizations in 'type'
Diffstat (limited to 'share/functions/type.fish')
-rw-r--r--share/functions/type.fish8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/functions/type.fish b/share/functions/type.fish
index 94c77efa..6eb1a66f 100644
--- a/share/functions/type.fish
+++ b/share/functions/type.fish
@@ -85,10 +85,10 @@ function type --description "Print the type of a command"
functions $i
case type
- printf (_ 'function\n')
+ echo (_ 'function')
case path
- echo
+ echo
end
if test $selection != multi
@@ -105,7 +105,7 @@ function type --description "Print the type of a command"
printf (_ '%s is a builtin\n') $i
case type
- printf (_ 'builtin\n')
+ echo (_ 'builtin')
case path
echo
@@ -126,7 +126,7 @@ function type --description "Print the type of a command"
printf (_ '%s is %s\n') $i $path
case type
- printf (_ 'file\n')
+ echo (_ 'file')
case path
echo $path