From: <abe...@us...> - 2011-10-19 00:01:49
|
Revision: 5217 http://astlinux.svn.sourceforge.net/astlinux/?rev=5217&view=rev Author: abelbeck Date: 2011-10-19 00:01:42 +0000 (Wed, 19 Oct 2011) Log Message: ----------- ex-vi, add VI_EDITOR_OPTIONS variable to set default vi editor options and make defaults options similar the previous BusyBox vi Modified Paths: -------------- branches/1.0/project/astlinux/target_skeleton/etc/init.d/misc branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf Modified: branches/1.0/project/astlinux/target_skeleton/etc/init.d/misc =================================================================== --- branches/1.0/project/astlinux/target_skeleton/etc/init.d/misc 2011-10-18 20:58:16 UTC (rev 5216) +++ branches/1.0/project/astlinux/target_skeleton/etc/init.d/misc 2011-10-19 00:01:42 UTC (rev 5217) @@ -7,6 +7,10 @@ init () { + if [ -n "$VI_EDITOR_OPTIONS" ]; then + echo -e "$VI_EDITOR_OPTIONS" > /root/.exrc + fi + if [ -n "$ISSUE" ]; then echo "$ISSUE" > /tmp/etc/issue else Modified: branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf =================================================================== --- branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf 2011-10-18 20:58:16 UTC (rev 5216) +++ branches/1.0/project/astlinux/target_skeleton/stat/etc/rc.conf 2011-10-19 00:01:42 UTC (rev 5217) @@ -828,6 +828,12 @@ ##################################################################### +## VI_EDITOR_OPTIONS set default vi editor options +## a multi-line syntax, no blank lines or comments allowed. +VI_EDITOR_OPTIONS="set ignorecase +set showmode +map \x7f h" + ## ISSUE is what is presented on running gettys (console) ISSUE="This is \n\ (\s \m \r) \t" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |