#!/bin/sh

ln -fs "$DOTFILES/sh/bashrc.sh"                 ~/.bashrc
ln -fs "$DOTFILES/sh/bash_profile.sh"           ~/.bash_profile
ln -fs "$DOTFILES/git/gitattributes"            ~/.gitattributes
ln -fs "$DOTFILES/git/gitignore"                ~/.gitignore_global
ln -fs "$DOTFILES/git/gitconfig.ini"            ~/.gitconfig
ln -fs "$DOTFILES/sbclrc.lisp"                  ~/.sbclrc
ln -fs "$DOTFILES/inputrc.conf"                 ~/.inputrc
ln -fs "$DOTFILES/Xmodmap.conf"                 ~/.Xmodmap
ln -fs "$DOTFILES/npmrc.sh"                     ~/.npmrc
ln -fs "$DOTFILES/mailcap.conf"                 ~/.mailcap

mkdir -p ~/Downloads/Screenshots/

mkdir -p ~/.local/share/common-lisp
[ ! -e ~/.local/share/common-lisp/source ] && ln -fs ~/dev/libre ~/.local/share/common-lisp/source

mkdir -p ~/tmp/
touch ~/tmp/scratch.txt
touch /tmp/fp.euandreh.log

mkdir -p ~/.gnupg
ln -fs "$DOTFILES/gpg/gpg.conf"                 ~/.gnupg/gpg.conf
ln -fs "$DOTFILES/gpg/gpg-agent.conf"           ~/.gnupg/gpg-agent.conf
ln -fs "$DOTFILES/gpg/sshcontrol"               ~/.gnupg/sshcontrol
ln -fs "$DOTFILES/../servers/ssh.conf"          ~/.ssh/config
ln -fs "$HOME/annex/bin/misc/git/mrconfig.ini"  ~/.mrconfig

mkdir -p ~/.newsboat
ln -fs "${HOME}/annex/bin/misc/atom/newsboat-urls.txt" ~/.newsboat/urls

## tmux
ln -fs "$DOTFILES/tmux.conf"                    ~/.tmux.conf

## vi
ln -fs "$DOTFILES/exrc.conf"                    ~/.exrc

## xmonad
mkdir -p ~/.xmonad
ln -fs "$DOTFILES/xmonad/xsession.sh"           ~/.xsession
ln -fs "$DOTFILES/xmonad/xmonad.hs"             ~/.xmonad/xmonad.hs
ln -fs "$DOTFILES/xmonad/xmobar.hs"             ~/.xmobarrc

## Mercurial
ln -fs "${DOTFILES}/hgrc.ini"                   ~/.hgrc

## ranger
mkdir -p ~/.config/ranger/
ln -fs "${DOTFILES}/ranger.conf"                ~/.config/ranger/rc.conf

## nu
ln -fs "$HOME/annex/bin/misc/nurc.sh"           ~/.nurc

## Guix
mkdir -p ~/.config/guix
ln -fs "$DOTFILES/guix/channels.scm"            ~/.config/guix/channels.scm

## pimutils
mkdir -p ~/.config/vdirsyncer/ ~/.config/khal
ln -fs "$HOME/annex/bin/misc/pimutils/vdirsyncer.conf" ~/.config/vdirsyncer/config
ln -fs "$HOME/annex/bin/misc/pimutils/khal.conf"       ~/.config/khal/config

ln -fs "$DOTFILES/infokey" ~/.infokey
