cygwin 讓使用者在 Windows 下 取得類似 Linux shell 環境的使用體驗
不過由於 cygwin 的安裝與後續的配置 軟體的管理 都不是一件簡單的事情
Babun 在 cygwin 之上 增加了一些功能並對其客製化 使得使用者可以很容易的安裝 並且在安裝後 就有一個預先配置
Babun 一些特色
- 安裝不需要管理者權限
- pact 套件管理程式
- 支援 xTerm-256
- 整合 oh-my-zsh
- 具備更新升級的功能 (auto-update)
很多 cygwin 的工具只是簡單的 bash scripts 在安裝那些工具後 沒有一個比較容易的方式 取得更新的版本 而 Babun auto-update 的特色 使得更新 babun, babun plugins 或是底層的 cygwin 變成一件簡單的事情
透過執行下列的指令 可以知道 babun 是否可以更新
$ babun check
Executing babun check
Prompt speed [OK]
Connection check [OK]
Update check [OK]
Cygwin check [OUTDATED]
Hint: the underlying Cygwin kernel is outdated. Execute 'babun update' and follow the instructions!
.babunrc 訂製 babun 行為
# Uncomment this to disable daily auto-update & proxy checks on startup (not recommended!)
export DISABLE_CHECK_ON_STARTUP="true"
.minttyrc
設定字型大小
FontHeight=14
pact - Package manager
pact --help
pact find tmux
pact install tmux
# gpg
pact install gnupg
cygwin, babun
將 unix 風格的目錄 對應到 windows 風格目錄
$ cygpath /home/jm.huang -w
C:\Users\jm.huang\.babun\cygwin\home\jm.huang
變換目錄到 windows C 槽
$ cd /cygdrive/c
移除 babun
打開 babun 的 shell 在 terminal 內輸入
$ uninstall.bat
Do you reallly want to uninstall babun (Y / N)?
Execute the uninstall.bat script from the installation directory.
Where Babun was installed?
Execute echo $BABUN_HOME
Babun FAQ
How can I install babun to a custom folder?
How can I uninstall Babun?
How do I find out where Babun was installed?
How do I integrate Babun with ConEmu / cmder ?
How can I change the default fonts and size of Babun’s (mintty) window on startup.
Cannot copy/paste into VIM.
How could I install and update babun on a computer not directly connected to the internet?
How to run an X-Server?
No display name and no $DISPLAY environment variable
chmod does not work as expected
zsh: command not found: emacs
How to use sshfs command
Use Dokan sshfs. Free and open source.
How do I launch Windows applications from command line with correct path arguments?
You have to convert the path with the 'cygpath -w' command. See `#299 <https://github.com/babun/babun/issues/299>`_.
I don’t want the 'Open Babun here' option in the context menu