# Makefile for shell configuration files.
-# Generate necessary files and create symbolic links in ~/.
-LINK=../link.sh
-.PHONY: setup
-setup:
- # Generate ~/.less with lesskey.
- lesskey lesskey
- # Link setup for shells.
- $(LINK) shell ~/.shell
- $(LINK) bash ~/.bash
- $(LINK) bash/rc ~/.bashrc
- $(LINK) bash/profile ~/.bash_profile
- $(LINK) zsh ~/.zsh
- $(LINK) zsh/env ~/.zshenv
- $(LINK) zsh/rc ~/.zshrc
- $(LINK) zsh/logout ~/.zlogout
- # Link setup for additional files.
- $(LINK) colordiffrc ~/.colordiffrc
- $(LINK) inputrc ~/.inputrc
- $(LINK) screenrc ~/.screenrc
-
test:
cd tests; zsh run.zsh
--- /dev/null
+# Setup script for shell configuration files.
+
+
+. ../lib.sh
+
+# Generate ~/.less with lesskey.
+lesskey lesskey
+
+# Link setup for shells.
+link shell ~/.shell
+link bash ~/.bash
+link bash/rc ~/.bashrc
+link bash/profile ~/.bash_profile
+link zsh ~/.zsh
+link zsh/env ~/.zshenv
+link zsh/rc ~/.zshrc
+link zsh/logout ~/.zlogout
+
+# Link setup for additional files.
+link colordiffrc ~/.colordiffrc
+link inputrc ~/.inputrc
+link screenrc ~/.screenrc