]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - setup.sh
setup.sh: Use 256 color mode only on supported systems.
[config/dotfiles.git] / setup.sh
1 #!/bin/sh
2
3 # Setup script for shell configuration files.
4
5
6 . ../lib.sh
7
8 # Generate ~/.less with lesskey.
9 lesskey lesskey
10
11 # As screen-256color is not widely supported use it only on machines known to
12 # work.
13 generate cat screenrc .in
14 if [ `hostname` != asp ]; then
15     sed 's/Enable 256 color/Disable 256 color/;
16          s/screen-256color/screen/' screenrc > screenrc.tmp
17     mv screenrc.tmp screenrc
18 fi
19
20 # Link setup for shells.
21 link shell ~/.shell
22 link bash ~/.bash
23 link bash/rc ~/.bashrc
24 link bash/profile ~/.bash_profile
25 link bash/logout ~/.bash_logout
26 link zsh ~/.zsh
27 link zsh/env ~/.zshenv
28 link zsh/rc ~/.zshrc
29 link zsh/logout ~/.zlogout
30
31 # Link setup for additional files.
32 link colordiffrc ~/.colordiffrc
33 link inputrc ~/.inputrc
34 link screenrc ~/.screenrc