X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=install;h=e44388cce675b3bf64a34f2ad61b7a4fd4910c53;hb=f4c195e8c7beacaf5f781e0d30c273b57ccad21f;hp=9b4766020f5524cb00e114f2b4ecab877f59c448;hpb=336b6c6c69a03210ca9f666e82de17503a129045;p=dotfiles.git diff --git a/install b/install index 9b47660..e44388c 100755 --- a/install +++ b/install @@ -1,7 +1,20 @@ #!/bin/bash -cp -if `pwd`/.vimrc ~/.vimrc -cp -if `pwd`/.bashrc ~/.bashrc -cp -if `pwd`/.Xresources ~/.Xresources -cp -if `pwd`/muttrc ~/.mutt/muttrc -cp -if `pwd`/msmtp ~/.mutt/msmtp -cp -if `pwd`/offlineimaprc ~/.mutt/offlineimaprc + +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