check if vim exist, report bye datenmaulwurf
[openwrt.git] / openwrt / package / base-files / default / etc / profile
index 1d98ae3..c42ee4a 100644 (file)
@@ -5,7 +5,8 @@ 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 $*; }
+reboot() { ifdown wan 2>&1 >/dev/null ; /sbin/reboot; }
This page took 0.024148 seconds and 4 git commands to generate.