54 lines
1 KiB
Bash
Executable file
54 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
INSTALL_BASEFILE=`readlink -f $0`
|
|
if [ -z $INSTALL_BASEFILE ]; then
|
|
INSTALL_BASEFILE="$PWD/$0"
|
|
fi
|
|
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
|
|
|
|
CMD="ln -sfn"
|
|
|
|
function linkmy
|
|
{
|
|
echo "Linking $INSTALL_BASEDIR/$1 to $HOME/$2"
|
|
$CMD $INSTALL_BASEDIR/$1 $HOME/$2
|
|
}
|
|
|
|
function copymy
|
|
{
|
|
echo "Copying $INSTALL_BASEDIR/$1 to $HOME/$2"
|
|
cp $INSTALL_BASEDIR/$1 $HOME/$2
|
|
}
|
|
|
|
# AWESOME
|
|
linkmy config/awesome .config/awesome
|
|
# CONKY
|
|
linkmy conkyrc .conkyrc
|
|
copymy conky_box.lua .conky_box.lua
|
|
# EMACS
|
|
linkmy emacs .emacs
|
|
linkmy emacs.d .emacs.d
|
|
# IRSSI
|
|
linkmy irssi .irssi
|
|
# MUTT
|
|
linkmy muttrc .muttrc
|
|
linkmy mutt .mutt
|
|
# NCMPCPP
|
|
linkmy ncmpcpp .ncmpcpp
|
|
# NEWSBEUTER
|
|
linkmy newsbeuter .newsbeuter
|
|
# OFFLINEIMAP
|
|
linkmy offlineimaprc .offlineimaprc
|
|
linkmy offlineimap.py .offlineimap.py
|
|
# VIM
|
|
linkmy vimrc .vimrc
|
|
linkmy vim .vim
|
|
# XDEFAULTS
|
|
linkmy Xdefaults .Xdefaults
|
|
# XINITRC
|
|
linkmy xinitrc .xinitrc
|
|
linkmy getrootname.sh .getrootname
|
|
# XMODMAP
|
|
linkmy Xmodmap .Xmodmap
|
|
# ZSH
|
|
linkmy zshrc .zshrc
|
|
linkmy zsh .zsh
|