Add example alias configurations

This commit is contained in:
mitchell 2020-10-05 22:00:05 -04:00
parent d7e8a2781a
commit e3f1ed12fa
1 changed files with 15 additions and 1 deletions

16
run
View File

@ -8,6 +8,13 @@
set -g run_func_prefix 'run' set -g run_func_prefix 'run'
set -g run_arg_delimeter ':' set -g run_arg_delimeter ':'
function define_aliases
alias run_h='run_hello'
alias run_l='run_lang'
alias lang_f='lang_fr'
end
### Commands ### ### Commands ###
# Add, edit, and remove commands freely below. # Add, edit, and remove commands freely below.
@ -38,7 +45,12 @@ function run_lang -a command -d 'Groups lang subcommands'
end end
### Default Commands ### ### Default Commands ###
# Below is a set of default commands, like help and commands. Give them a try by doing: # Do not edit, unless you want to alter how the default commands work.
#
# Below is a set of default commands, like help and commands. They introspect on any valid run
# script.
#
# Examples:
# ./run help # ./run help
# ./run help:hello # ./run help:hello
# ./run commands # ./run commands
@ -70,6 +82,8 @@ end
# ./run hello hey:mitchell lang:fr # ./run hello hey:mitchell lang:fr
# #
function main function main
define_aliases
for command in $argv for command in $argv
set -l last_status $status set -l last_status $status
test $last_status -gt 0; and exit $last_status test $last_status -gt 0; and exit $last_status