ude:~# crontab -eを実行したら、nano が立ち上がってきた。
ブィアィにしてぇ~
ude:~# echo $EDITOR ude:~#と、未定義???
ude:~# cd /etc/ ude:/etc# grep nano * nanorc:## Sample initialization file for GNU nano nanorc:## Please note that you must have configured nano with nanorc:## --enable-nanorc for this file to be read! nanorc:## An out-of-range negative value can make nano die complaining that the nanorc:## You can get old nano quoted-justify behavior via: nanorc:## Allow nano to be suspended with ^Z nanorc:## Enable ~/.nano_history for saving and reading search/replace strings. nanorc:## For this you will probably want to set your editor to "nano -Y mutt" nanorc:## Here is are examples for groff and for your .nanorc nanorc:#syntax "nanorc" "[\.]*nanorc$" ude:/etc# grep nano */* Binary file alternatives/editor matches Binary file alternatives/editor.1.gz matches ude:/etc#alternatives ???
そういえば、Vine でも lpr か CUPS かを選択するのに オルタネイティブなんとかというコマンドを使ったような、かすかな記憶が。
ude:/etc/alternatives# less README Please read the update-alternatives(8) man page for information on this directory and its contents. ude:/etc/alternatives#
ude:/etc/alternatives# man update-alternatives :
ude:/etc/alternatives# update-alternatives --config editor
There are 3 alternatives which provide `editor'.
Selection Alternative
-----------------------------------------------
1 /bin/ed
*+ 2 /bin/nano
3 /usr/bin/nvi
Press enter to keep the default[*], or type selection number: 3
Using `/usr/bin/nvi' to provide `editor'.
ude:/etc/alternatives# ls -l /etc/alternatives/editor*
lrwxrwxrwx 1 root root 12 Jan 19 22:22 /etc/alternatives/editor -> /usr/bin/nvi
lrwxrwxrwx 1 root root 28 Jan 19 22:22 /etc/alternatives/editor.1.gz -> /usr/share/man/man1/nvi.1.gz
ude:/etc/alternatives#
リンクが、nvi に変った。
crontab -e を実行しても、vi が立ち上がって来た。
めでたしめでたし。
|
楽天市場
Amazon |
|
← debian: DHCP サーバ |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ debian: DNS |