check if vim exist, report bye datenmaulwurf
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Mon, 10 Apr 2006 21:54:19 +0000 (21:54 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Mon, 10 Apr 2006 21:54:19 +0000 (21:54 +0000)
SVN-Revision: 3611

openwrt/package/base-files/default/etc/profile

index e3abe6967fffb1d76d2d6ffb483a81c1493686b5..c42ee4a895a6a3899df4c1ec3f99839e5259a711 100644 (file)
@@ -5,7 +5,7 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 export PS1='\u@\h:\w\$ '
 
 [ -x /usr/bin/less ] || alias less=more
-alias vim=vi
+[ -x /usr/bin/vim ] || alias vim=vi
 
 arp() { cat /proc/net/arp; }
 ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }