我想在 Fish 中添加一个带有空格的别名,如下所示:
alias hello there 'print hello there'
Run Code Online (Sandbox Code Playgroud)
这有可能吗?(我知道这个例子是无效的,我只是举个例子)。
提前致谢。
目前,fish 的包装函数无法实现这一点alias。
然而,无论如何,最终要做的是定义一个函数,所以你可以这样做。
function "hello there"
echo hello there
end
Run Code Online (Sandbox Code Playgroud)
"hello there"用或执行hello\ there。