3 # Setup script for shell configuration files.
8 # Generate ~/.less with lesskey.
12 # As screen-256color is not widely supported use it only on machines known to
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
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
27 # Link setup for shells.
30 link bash/rc ~/.bashrc
31 link bash/profile ~/.bash_profile
32 link bash/logout ~/.bash_logout
34 link zsh/env ~/.zshenv
36 link zsh/logout ~/.zlogout
38 # Link setup for additional files.
39 if installed colordiff; then
40 link colordiffrc ~/.colordiffrc
42 link inputrc ~/.inputrc
43 link screenrc ~/.screenrc