diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-13 00:29:05 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-13 00:29:05 +0530 |
commit | 9b781c4c06f7eff87de5aaa73c83b6a426dd1558 (patch) | |
tree | 1181fc89411a04321c65cf46a0bca5986a2a5f66 /share | |
parent | 25f9105a9776e2cf4a60c1d7c64b0f508e616246 (diff) |
Modified alias.fish to show help message when executed with 0 arguments
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/alias.fish | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/functions/alias.fish b/share/functions/alias.fish index c4e12b3b..cc5dab98 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] |