mise
mise copied to clipboard
Cross-shell aliases
I would like to be able to specify aliases
for built-in scripts in the mise configuration, so as not to specify the full path to them or parameters for launching:
# define
alias myTool='path/to/my_tool.sh --default-option'
# usage
myTool subcommand <path...> --argument Value --some-option
I know it's possible to create a mise task
, but calling mise run seems like a longer command, especially when my script can also take many parameter and component arguments:
mise run myTool subcommand <path...> --argument Value --some-option
If I understand correctly, you can use the env._.source
directive and specify the path to the script (for example aliases.sh
) in which all aliases will be declared.
BUT I want to avoid spreading the project settings across several files, and keep everything in one configuration mise:
# Aliases of bash scripts
[alias.bash]
myTool='path/to/my_tool.sh --default-option'
# Aliases of ruby scripts
[alias.ruby]
myRubyTool='path/to/stuff.rb'