我的.Zshrc中有以下代码
function google; { $VIEW "http://www.google.com/search?q='url-encode "${(j: :)@}"'" }
我明白了
google masi google:1: no such file or directory: http://www.google.com/search?q='url-encode masi'
如何让Google搜索在Zsh中运行?
以下解决了Mac中的问题
function google; { open "http://www.google.com/search?q='url-encode "${(j: :)@}"'" }
在Ubuntu
function google; { gnome-open "http://www.google.com/search?q='url-encode "${(j: :)@}"'" }