legacy-dotfiles/install.sh

32 lines
536 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: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
# IRSSI
linkmy irssi .irssi
# NCMPCPP
linkmy ncmpcpp .ncmpcpp
2010-12-05 12:44:54 +01:00
# VIM
linkmy vimrc .vimrc
linkmy vim .vim
# XDEFAULTS
linkmy Xdefaults .Xdefaults
# XMODMAP
linkmy Xmodmap .Xmodmap
2010-12-05 12:50:00 +01:00
# ZSH
linkmy zshrc .zshrc
linkmy zsh .zsh