Browse Source

fix alias vl

pull/1/head
10sr 10 years ago
parent
commit
4702b7a3b3
1 changed files with 13 additions and 3 deletions
  1. +13
    -3
      bashrc

+ 13
- 3
bashrc View File

@@ -273,10 +273,20 @@ wicn(){
fi
}

for f in /usr/share/vim/vimcurrent/macros/less.sh \
/usr/share/vim/vim73/macros/less.sh \
/usr/share/vim/vim72/macros/less.sh
__find_latest_vimdir(){
vimdir=/usr/share/vim
if test -d "$vimdir"
then
find "$vimdir" -name 'vim??' -type d | sort | tail -n 1
else
echo ""
fi
}

for f in /usr/share/vim/vimcurrent "`__find_latest_vimdir`"
do
test -n "$f" || continue
f="$f/macros/less.sh"
test -f $f && alias vl=$f && break
done



Loading…
Cancel
Save