【问题标题】:Is it possible to use firefox's google search bar directly from command line?是否可以直接从命令行使用 firefox 的 google 搜索栏?
【发布时间】:2012-11-30 03:42:45
【问题描述】:

我检查了 firefox 据称支持的命令行参数,发现明显缺乏这一点,但我不禁假设它一定是可能的。有什么想法吗?目前正在运行 Ubuntu 11.10,如果这有任何改变的话。

【问题讨论】:

  • Firefox 的搜索栏有什么是您无法直接从 Google 获得的?
  • 主要是一个可能的 cli 工具,因为我不喜欢点击,但我想不是。
  • 嗯,你可以从命令行打开谷歌搜索页面:$ firefox https://www.google.com/search?q=google。但我不确定你是否是这个意思。
  • 或者您可以在 Firefox 中按 Ctrl+K 来聚焦搜索栏并开始输入,而无需单击它,如果您是这个意思的话。
  • 我的意思是,它很接近,我只是希望直接访问。

标签: firefox ubuntu command-line


【解决方案1】:

如果您说的是Developer Toolbar,它看起来并没有访问内置搜索的权限。它主要用于快速访问开发人员任务(输入help 以查看其访问的全部内容),而不是用于驱动常规浏览任务。

【讨论】:

    【解决方案2】:

    在 ubuntu 中使用终端安装 googler Step-1 : 安装 git(如果没有安装)

         sudo apt-get install git
    

    第二步:更改目录

         cd /tmp
    

    第 3 步:使用命令从下面给出的链接中克隆它

        git clone https://github.com/jarun/googler.git
    

    第四步:进入 googler 目录

       cd googler
    

    第五步:

       sudo make install
    

    Step-6: 之后移动到 bash 目录

       cd auto-completion/bash/
    

    Step-7: 最后拷贝文件到etc/bash_completion.d

       sudo cp googler-completion.bash /etc/bash_completion.d/
    

    现在从终端打开 googler

       googler your_query
    

    更多查询请参考here

    使用 man googler 获取更多选项

    【讨论】:

      猜你喜欢
      • 2016-07-12
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 2010-10-30
      • 2021-11-03
      • 2016-10-31
      • 2012-12-18
      • 1970-01-01
      相关资源
      最近更新 更多