From 9b781c4c06f7eff87de5aaa73c83b6a426dd1558 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Wed, 13 Jun 2012 00:29:05 +0530 Subject: [PATCH] Modified alias.fish to show help message when executed with 0 arguments --- share/functions/alias.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/functions/alias.fish b/share/functions/alias.fish index c4e12b3b3..cc5dab98a 100644 --- a/share/functions/alias.fish +++ b/share/functions/alias.fish @@ -13,6 +13,9 @@ function alias --description "Legacy function for creating shellscript functions set -l body switch (count $argv) + case 0 + echo "Fish implements aliases using functions. Use 'functions' builtin to see list of functions and 'functions function_name' to see function definition, type 'help alias' for more information." + return 1 case 1 set -l tmp (echo $argv|sed -e "s/\([^=]\)=/\1\n/") set name $tmp[1]