legacy-dotfiles/install.sh

27 lines
466 B
Bash
Raw Normal View History

2010-12-05 12:41:38 +01:00
#!/bin/bash
INSTALL_BASEFILE=`readlink -f $0`
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
2010-12-05 12:19:49 +01:00
CMD="ln -sfn"
2010-12-05 12:41:38 +01:00
function linkmy
{
echo "Linking $INSTALL_BASEDIR/$1 to $HOME/$2"
$CMD $INSTALL_BASEDIR/$1 $HOME/$2
}
2010-12-05 12:41:38 +01:00
# XDEFAULTS
linkmy Xdefaults .Xdefaults
# XMODMAP
2010-12-05 12:41:38 +01:00
linkmy Xmodmap .Xmodmap
2010-12-05 11:47:14 +01:00
# NCMPCPP
2010-12-05 12:41:38 +01:00
linkmy ncmpcpp .ncmpcpp
2010-12-05 12:19:49 +01:00
# AWESOME
2010-12-05 12:41:38 +01:00
linkmy config/awesome .config/awesome
# EMACS
linkmy emacs .emacs
linkmy emacs.d .emacs.d
2010-12-05 12:44:54 +01:00
# VIM
linkmy vimrc .vimrc
linkmy vim .vim