X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=install;h=e44388cce675b3bf64a34f2ad61b7a4fd4910c53;hb=7528c81da4147cac13f0b17b00720d2fb4b83805;hp=3198c1d5b02dedd691d42b42f2c61b37935f115a;hpb=bd14b9393ad27ac16aaa010a6561a5894a1fcfbd;p=dotfiles.git diff --git a/install b/install old mode 100644 new mode 100755 index 3198c1d..e44388c --- a/install +++ b/install @@ -1,2 +1,20 @@ #!/bin/bash -ln -is `pwd`/.vimrc ~/.vimrc + +cp -if `pwd`/.vimrc ~/.vimrc || true +cp -if `pwd`/.bashrc ~/.bashrc || true +cp -if `pwd`/muttrc ~/.mutt/muttrc || true +cp -if `pwd`/msmtp ~/.mutt/msmtp || true +cp -if `pwd`/offlineimaprc ~/.mutt/offlineimaprc || true +cp -if `pwd`/gpg-agent.conf ~/.gnupg/gpg-agent.conf || true +sudo cp -if `pwd`/sudo/mpd.conf /etc/mpd.conf || true +sudo cp -if `pwd`/sudo/settings.json /etc/transmission-daemon/settings.json || true +sudo cp -if `pwd`/gpg-agent.sh /etc/profile.d/gpg-agent.sh || true + +if [ "$1" = "-x" ] +then + echo 'Also copying X files for non headless' + mkdir -p ~/.i3 + cp -if `pwd`/i3/* ~/.i3/ || true + cp -if `pwd`/.xinitrc ~/.xinitrc || true + cp -if `pwd`/.Xresources ~/.Xresources || true +fi