Babunを使ってみる

なんやかんやあって、babunを試してみることにしました。

Babun - a windows shell you will love!

Cygwinは好きじゃないのですが、このへん見てちょっと使ってみようかと。

[D] Windowsはターミナルがダメだから使えないってのは過去の話?

gnupack(Cygwin) + oh-my-zsh + tmuxの環境を構築する - yuukiar.co

インストール

とりあえず公式ページからバイナリをダウンロード、解凍して指定のディレクトリにインストール。

PS > unzip .\babun-1.2.0-dist.zip
Archive:  ./babun-1.2.0-dist.zip
   creating: babun-1.2.0/
   creating: babun-1.2.0/dist/
  inflating: babun-1.2.0/dist/babun.zip
  inflating: babun-1.2.0/dist/freespace.vbs
  inflating: babun-1.2.0/dist/unzip.exe
  inflating: babun-1.2.0/install.bat
  inflating: babun-1.2.0/install.txt
PS > cd .\babun-1.2.0-dist
PS babun-1.2.0-dist > .\install.bat /t C:\babun

起動はちょっとだけ時間がかかります。Cygwinぽい。

普段cmderからシェルを起動しているのでcmderのタスクに登録してみた。 のですが、babun.batを起動すると独立したbabunのウィンドウが立ち上がってしまい、cmder側には「EnterかESCで閉じるよ」ってメッセージが。

そこで、デスクトップにできたショートカットを見ると、babunの持っているminttyを起動するようになっている。 ので、そのパスをタスクに登録してみた。 ら、今度はcmder上でうまく表示されないってかエラーっぽい何かが。

面倒なので、とりあえずcmderを介さずにbabunだけで使ってみます。

初期設定

オプションを開きます。

  1. Looksから透過度の設定をします。デフォルトでOffになっていたのでMedに。そこそ透過します。

f:id:h2blg:20151108131341p:plain

  1. Textでフォント、ロケールの設定を変更。

f:id:h2blg:20151108131704p:plain

ソフトウェアのインストール

apt-cygではなく、pactというコマンドが使えるようです。

とりあえずfindで検索してinstallでインストールする、と。

{ ~ }  » pact --help                                                                                                                                                                                                                     ~
pact: Installs and removes Cygwin packages.

Usage:
  "pact install <package names>" to install given packages
  "pact remove <package names>" to remove given packages
  "pact update <package names>" to update given packages
  "pact show" to show installed packages
  "pact find <patterns>" to find packages matching patterns
  "pact describe <patterns>" to describe packages matching patterns
  "pact packageof <commands or files>" to locate parent packages
  "pact invalidate" to invalidate pact caches (setup.ini, etc.)
Options:
  --mirror, -m <url> : set mirror
  --invalidate, -i       : invalidates pact caches (setup.ini, etc.)
  --force, -f : force the execution
  --help
  --version

tmuxを検索してみるとこんな感じ。

{ ~ }  » pact find tmux                                                                         ~
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
--2015-11-08 12:14:28--  http://mirrors.kernel.org/sourceware/cygwin//x86/setup.bz2
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.37.36, 198.145.20.143
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.37.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1883432 (1.8M) [application/octet-stream]
Saving to: ‘setup.bz2’

setup.bz2                100%[====================================>]   1.80M   484KB/s   in 4.0s

2015-11-08 12:14:32 (462 KB/s) - ‘setup.bz2’ saved [1883432/1883432]

Updated setup.ini

Searching for installed packages matching tmux:

Searching for installable packages matching tmux:
tmux
tmux-debuginfo

続いてインストール

{ ~ }  » pact install tmux                                                                      ~
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
--2015-11-08 12:14:49--  http://mirrors.kernel.org/sourceware/cygwin//x86/setup.bz2
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.37.36, 198.145.20.143
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.37.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1883432 (1.8M) [application/octet-stream]
Saving to: ‘setup.bz2’

setup.bz2                100%[====================================>]   1.80M   538KB/s   in 3.7s

2015-11-08 12:14:53 (501 KB/s) - ‘setup.bz2’ saved [1883432/1883432]

Updated setup.ini

Installing tmux
Found package tmux
--2015-11-08 12:14:53--  http://mirrors.kernel.org/sourceware/cygwin//x86/release/tmux/tmux-2.1-1.ta                                                                                                                                         r.xz
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.37.36, 198.145.20.143
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.37.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 217596 (212K) [application/octet-stream]
Saving to: ‘tmux-2.1-1.tar.xz’

tmux-2.1-1.tar.xz        100%[====================================>] 212.50K  --.-KB/s   in 0.001s

2015-11-08 12:14:55 (187 MB/s) - ‘tmux-2.1-1.tar.xz’ saved [217596/217596]

Unpacking...
Package tmux requires the following packages, installing:
cygwin libevent2.0_5 libncursesw10
Package cygwin is already installed, skipping
Package libevent2.0_5 is already installed, skipping
Package libncursesw10 is already installed, skipping
Package tmux installed

所感

現時点で所感もクソもないですが……

起動がちょい遅かったり、lsとかの反応が多少遅かったりCygwin的な残念さはあるものの、即座に投げ捨てるようなものではないですね。

とりあえず色々試してみないとなんとも言えないので、しばらく使ってみます。