function fish_title; echo bar; end我想要创建一个set_title函数,它将提供与上述相同的结果,即通过运行set_title bar。有什么想法吗?
发布于 2015-04-01 16:39:08
我现在明白了。你需要这个:
function set_title -a new_title
eval "function fish_title; echo $new_title; end"
endhttps://stackoverflow.com/questions/29385264
复制相似问题