|
From: <abe...@us...> - 2013-07-30 17:03:02
|
Revision: 6158
http://sourceforge.net/p/astlinux/code/6158
Author: abelbeck
Date: 2013-07-30 17:02:58 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
ex-vi, /etc/profile alias to define LC_CTYPE for vi if the set-locale command was used
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/profile
Modified: branches/1.0/project/astlinux/target_skeleton/etc/profile
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/profile 2013-07-30 00:10:25 UTC (rev 6157)
+++ branches/1.0/project/astlinux/target_skeleton/etc/profile 2013-07-30 17:02:58 UTC (rev 6158)
@@ -38,6 +38,11 @@
export PAGER=less
fi
+# Set UTF-8 character type for vi
+if [ -f /usr/lib/locale/.locale ]; then
+ alias vi="LC_CTYPE=$(cat /usr/lib/locale/.locale) vi"
+fi
+
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|