summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-10-29 23:48:48 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-10-29 23:48:48 -0500
commit4bab4a04a740afe2c5d780226ba1c05865f8c9f3 (patch)
treeb05c301b95df8a581565902c8751cf9399d10ce1 /install
parentac6076664ab780b335a4c7d134a95ff030c5597e (diff)
downloadconf-4bab4a04a740afe2c5d780226ba1c05865f8c9f3.tar.gz
conf-4bab4a04a740afe2c5d780226ba1c05865f8c9f3.zip
add a script to set up symlinks for all the configuration
Diffstat (limited to 'install')
-rw-r--r--install26
1 files changed, 26 insertions, 0 deletions
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