]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - setup.sh
zsh/rc: Add global aliases for head and tail.
[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
21 # Link setup for shells.
22 link shell ~/.shell
23 link bash ~/.bash
24 link bash/rc ~/.bashrc
25 link bash/profile ~/.bash_profile
26 link bash/logout ~/.bash_logout
27 link zsh ~/.zsh
28 link zsh/env ~/.zshenv
29 link zsh/rc ~/.zshrc
30 link zsh/logout ~/.zlogout
31
32 # Link setup for additional files.
33 if installed colordiff; then
34     link colordiffrc ~/.colordiffrc
35 fi
36 link inputrc ~/.inputrc
37 link screenrc ~/.screenrc