X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=install;h=29727498284fdf9e8fcd02768090031f65a5e7d9;hb=fb2d86dbc90ab1cfd89ca97059b79f9d6807221d;hp=cf40057461a7f4ecc86801c308e421d559fe5157;hpb=7df7ab410d3a07d88f42cb9a83752d11f3093001;p=dotfiles.git diff --git a/install b/install index cf40057..2972749 100755 --- a/install +++ b/install @@ -1,7 +1,18 @@ #!/bin/bash -cp -if `pwd`/.vimrc ~/.vimrc -cp -if `pwd`/.bashrc ~/.bashrc -cp -if `pwd`/.Xresources ~/.Xresources -cp -if `pwd`/muttrc ~/.mutt/muttrc -mkdir -p ~/.i3 -cp -if `pwd`/i3/* ~/.i3/ + +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 +sudo cp -if `pwd`/sudo/mpd.conf /etc/mpd.conf || true +sudo cp -if `pwd`/sudo/settings.json /etc/transmission-daemon/settings.json || 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