GNU nanoをインストール MacPorts

提供: dsk's note
移動: 案内検索

OSX Leopardに標準で入っているnanoは日本語が文字化けしてしまうので、最新のものをMacPortsでインストールした。

sudo port install nano
nano -V 


/usr/bin/nanoには標準のnanoが入ったままなので、エイリアスの設定しておいた。 ~/.profileを編集し、以下を追記。

alias nano='/opt/local/bin/nano'
nano -V
 GNU nano version 2.2.6 (compiled 23:52:57, Aug  9 2013)
 (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
 2008, 2009 Free Software Foundation, Inc.
 Email: nano@nano-editor.org	Web: http://www.nano-editor.org/
 Compiled options: --disable-nls --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8

外部リンク