diff options
Diffstat (limited to 'install')
-rw-r--r-- | install | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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 |