legacy-dotfiles/install.sh
2010-12-05 12:46:55 +01:00

26 lines
466 B
Bash
Executable file

#!/bin/bash
INSTALL_BASEFILE=`readlink -f $0`
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
CMD="ln -sfn"
function linkmy
{
echo "Linking $INSTALL_BASEDIR/$1 to $HOME/$2"
$CMD $INSTALL_BASEDIR/$1 $HOME/$2
}
# XDEFAULTS
linkmy Xdefaults .Xdefaults
# XMODMAP
linkmy Xmodmap .Xmodmap
# NCMPCPP
linkmy ncmpcpp .ncmpcpp
# AWESOME
linkmy config/awesome .config/awesome
# EMACS
linkmy emacs .emacs
linkmy emacs.d .emacs.d
# VIM
linkmy vimrc .vimrc
linkmy vim .vim