Use vim.basic as alternative setting for vi
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 90-update-alternatives
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives
3 # Purpose:       set up /etc/alternatives/* according to grml preferences
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 # Latest change: Mon Aug 25 13:24:20 CEST 2008 [mika]
8 ################################################################################
9
10 set -u
11 set -e
12
13 if [ -r $target/usr/bin/vim.basic ] ; then
14    $ROOTCMD update-alternatives --set editor /usr/bin/vim.basic
15    $ROOTCMD update-alternatives --set vi     /usr/bin/vim.basic
16 fi
17
18 ## Too many people don't expect to get that, so deactive by default:
19 # if [ -r $target/usr/bin/vim.tiny ] ; then
20 #    $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny
21 # fi
22
23 if [ -r $target/usr/bin/vim.tiny ] ; then
24 fi
25
26 if [ -r $target/usr/bin/uxterm ] ; then
27    $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/uxterm
28 elif [ -r $target/usr/bin/xterm ] ; then
29    $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/xterm
30 fi
31
32 if [ -r $target/etc/X11/cursors/whiteglass.theme ] ; then
33    $ROOTCMD update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme
34 fi
35
36 if [ -r $target/usr/bin/iceweasel ] ; then
37    $ROOTCMD update-alternatives --set x-www-browser /usr/bin/iceweasel
38 fi
39
40 if [ -r $target/usr/bin/w3m ] ; then
41    $ROOTCMD update-alternatives --set www-browser /usr/bin/w3m
42 fi
43
44 ## END OF FILE #################################################################
45 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3