From 4bab4a04a740afe2c5d780226ba1c05865f8c9f3 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Wed, 29 Oct 2008 23:48:48 -0500 Subject: add a script to set up symlinks for all the configuration --- install | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 install (limited to 'install') diff --git a/install b/install new file mode 100644 index 0000000..95b0eab --- /dev/null +++ b/install @@ -0,0 +1,26 @@ +#!/bin/bash + +confdir=$(dirname $0) +files="bash_logout + bashrc + crawlrc + gtkrc + inputrc + nethackrc + screenrc + vimrc + Xdefaults + bin + fortune + vim" + +function install() { + if [[ -e "$2" && ! -h "$2" ]]; then + mv "$2" "$2.bak" + fi + ln -sf "$confdir/$1" "$2" +} + +for file in $files; do + install "${file}" ".${file}" +done -- cgit v1.2.3-54-g00ecf