我想在 fish 中添加一个带有空格的别名,如下所示:
alias hello there 'print hello there'
这有可能吗? (我知道这个例子是无效的,我只是举个例子)。
提前致谢。
最佳答案
目前 fish 的 alias
包装器函数无法做到这一点。
但是,无论如何,最终要做的是定义一个函数,因此您可以这样做。
function "hello there"
echo hello there
end
执行 "hello there"
或 hello\there
。
关于fish - fish shell 中带有空格的别名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41161234/