mise shell-alias set
- 用法:
mise shell-alias set <shell_alias> [COMMAND] - 别名:
add、create - 作用: 修改状态
- 源代码:
src/cli/shell_alias/set.rs
Set a shell alias in the global config
Writes the global config (~/.config/mise/config.toml by default). To share an alias with a project, add it under [shell_alias] in the project's mise.toml.
Arguments
<shell_alias>— The alias name[COMMAND]— The command to run (or pass ALIAS=COMMAND)
标志
-h --help— 显示帮助
示例
Define ll in every directory
mise shell-alias set ll "ls -la"Use the ALIAS=COMMAND form
mise shell-alias set gs="git status"