10
11

More than 5 years have passed since last update.

cliから各種検索する君作った。(jman,alc,archwiki,qiita,google…)

Last updated at Posted at 2013-07-23

manコマンドのラッパーを用意していたら別方向に拡張してしまった。

使い方

$ cli_searcher less ← 日本語マニュアルあれば優先表示。英語マニュアルは色付きになります。
$ cli_searcher -k ssh ← manコマンドの-kオプションとして動きます。

以下は全てブラウザ起動。

usage: cli_searcher [options] keyword
options:
  -n|--net             : man日本語ウェブ
  --php                : phpマニュアル
  --alc                : alc和英/和英
  --archwiki           : archwiki
  --stackoverflow      : stackoverflow
  --qiita-tag          : qiitaタグ
  --qiita              : qiita
  --googlemap          : googleマップ
  --google             : google
  --smblookup          : Windowsのコンピュータ名検索
  --whois-jp-contact   : jpドメイン名から登録者一覧を検索
  --jobtalk            : 企業の内情
  --kakaku             : 価格コム
  --vimdoc             : vimdoc
  --wikipedia          : wikipedia
  --weather            : 天気
  --youtube            : youtube
  --github-python      : github code search
  --github-php         : github code search
  --github-html        : github code search
  --github-javascript  : github code search
What manual page do you want?

設定変更

先頭に定義しているものを適宜修正してください。

#[config]
MAC_BROWSER=/Applications/Safari.app
#MAC_BROWSER=/usr/local/bin/w3m
LINUX_BROWSER=x-www-browser
UTF8MANPATH="/usr/local/share/man/ja_JP.UTF-8"
alias phpnet='cli_searcher --php'
alias alc='cli_searcher --alc'
alias archwiki='cli_searcher --archwiki'
alias stackoverflow='cli_searcher --stackoverflow'
alias qiita='cli_searcher --qiita'
alias qiita-tag='cli_searcher --qiita-tag'
alias googlemap='cli_searcher --googlemap'
alias google='cli_searcher --google'
alias jobtalk='cli_searcher --jobtalk'
alias kakaku='cli_searcher --kakaku'
alias vimdoc='cli_searcher --vimdoc'
alias wikipedia='cli_searcher --wikipedia'
alias weather='cli_searcher --weather'
alias youtube='cli_searcher --youtube'
alias github-python='cli_searcher --github-python'
alias github-php='cli_searcher --github-php'
alias github-html='cli_searcher --github-html'
alias github-javascript='cli_searcher --github-javascript'

download

10
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
11