Lots of changes to dotfiles

This commit is contained in:
Jonathan Hodgson 2018-12-06 22:43:46 +00:00
parent 72692a1a23
commit 6ca009600d
8 changed files with 209 additions and 144 deletions

View file

@ -13,20 +13,23 @@ if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
force=true
fi
echo ""
# A wrapper around ln which will force if necesary
function myLink(){
if $force; then
/usr/bin/ln -sf "$1" "$2"
echo "forced $2 -> $1"
else
/usr/bin/ln -s "$1" "$2"
if [ ! -e "$2" ]; then
echo "${1} -> ${2}"
/usr/bin/ln -s "$1" "$2"
fi
fi
}
#ZSH
myLink $HOME/.dotfiles/shells/zsh/zprofile $HOME/.zprofile
myLink $HOME/.dotfiles/shells/zsh/zshrc $HOME/.zshrc
myLink $HOME/.dotfiles/shells/zsh/zshrc $HOME/.zshrc.pre-oh-my-zsh
#bash
myLink $HOME/.dotfiles/shells/bash/bash_profile $HOME/.bash_profile
@ -34,7 +37,7 @@ myLink $HOME/.dotfiles/shells/bash/bashrc $HOME/.bashrc
#X
myLink $HOME/.dotfiles/x/xinitrc $HOME/.xinitrc
myLink /home/jonathan/.dotfiles/x/xmodmap $HOME/.Xmodmap
myLink $HOME/.dotfiles/x/xmodmap $HOME/.Xmodmap
#Git
myLink $HOME/.dotfiles/git/gitconfig $HOME/.gitconfig
@ -42,9 +45,7 @@ myLink $HOME/.dotfiles/git/gitconfig $HOME/.gitconfig
#i3
mkdir -p $HOME/.config/i3
myLink $HOME/.dotfiles/i3/config $HOME/.config/i3/config
#i3blocks
myLink $HOME/.dotfiles/i3/i3blocks.conf $HOME/.i3blocks.conf
myLink /home/jonathan/.dotfiles/i3/i3exit $HOME/.config/i3/i3exit
#dunst
myLink $HOME/.dotfiles/dunst $HOME/.config/dunst
@ -62,3 +63,5 @@ myLink $HOME/.dotfiles/Templates $HOME/Templates
#Pandoc
myLink $HOME/.dotfiles/pandoc $HOME/.pandoc
#Qutebrowser
myLink $HOME/.dotfiles/qutebrowser $HOME/.config/qutebrowser