]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - setup.sh
screenrc: Change hardstatus color when in copy mode.
[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 chmod 0600 ~/.less
11
12 # As screen-256color is not widely supported use it only on machines known to
13 # work.
14 generate cat screenrc .in
15 if [ `hostname` != asp -a `hostname` != systemofadown ]; then
16     sed 's/Enable 256 color/Disable 256 color/;
17          s/screen-256color/screen/' screenrc > screenrc.tmp
18     mv screenrc.tmp screenrc
19 fi
20 # I use some features of screen which are only in Git. Drop them on machines
21 # which have older versions. They are marked as "(GIT)".
22 if [ `hostname` != asp ]; then
23     grep -v '(GIT)' screenrc > screenrc.tmp
24     mv screenrc.tmp screenrc
25 fi
26
27 # Link setup for shells.
28 link shell ~/.shell
29 link bash ~/.bash
30 link bash/rc ~/.bashrc
31 link bash/profile ~/.bash_profile
32 link bash/logout ~/.bash_logout
33 link zsh ~/.zsh
34 link zsh/env ~/.zshenv
35 link zsh/rc ~/.zshrc
36 link zsh/logout ~/.zlogout
37
38 # Link setup for additional files.
39 if installed colordiff; then
40     link colordiffrc ~/.colordiffrc
41 fi
42 link inputrc ~/.inputrc
43 link screenrc ~/.screenrc