Added a dry run option for alltheconfigs.sh
Using `-d` flag runs alltheconfigs with `rsync -aunP` Introducing $params variable to hold the args
This commit is contained in:
parent
8e3f12355c
commit
e3390dadf3
@ -4,46 +4,51 @@
|
||||
|
||||
dotfiles=~/utils/dotfiles
|
||||
|
||||
rsync -auP /etc/X11/Xresources $dotfiles/etc/X11
|
||||
params="auP"
|
||||
if [ "$1" == "-d" ]; then
|
||||
params="aunP" # rsync -n for dry run
|
||||
fi
|
||||
|
||||
rsync -auP /etc/default/tlp $dotfiles/etc/default
|
||||
rsync -auP /etc/default/tlp.rpmnew $dotfiles/etc/default
|
||||
rsync -$params /etc/X11/Xresources $dotfiles/etc/X11
|
||||
|
||||
rsync -auP ~/alltheconfigs.sh $dotfiles
|
||||
rsync -$params /etc/default/tlp $dotfiles/etc/default
|
||||
rsync -$params /etc/default/tlp.rpmnew $dotfiles/etc/default
|
||||
|
||||
rsync -auP ~/.vim/vimrc $dotfiles/vimrc
|
||||
rsync -auP ~/.gvimrc $dotfiles/gvimrc
|
||||
rsync -auP ~/.zshrc $dotfiles/zsh/zshrc
|
||||
rsync -$params ~/alltheconfigs.sh $dotfiles
|
||||
|
||||
rsync -auP ~/.config/compton.conf $dotfiles/config
|
||||
rsync -$params ~/.vim/vimrc $dotfiles/vimrc
|
||||
rsync -$params ~/.gvimrc $dotfiles/gvimrc
|
||||
rsync -$params ~/.zshrc $dotfiles/zsh/zshrc
|
||||
|
||||
rsync -$params ~/.config/compton.conf $dotfiles/config
|
||||
|
||||
|
||||
#rsync -auP ~/MEGAsync/backups/authenticator.sh $dotfiles/backups
|
||||
rsync -auP ~/MEGAsync/backups/createarchive.sh $dotfiles/backups
|
||||
#rsync -$params ~/MEGAsync/backups/authenticator.sh $dotfiles/backups
|
||||
rsync -$params ~/MEGAsync/backups/createarchive.sh $dotfiles/backups
|
||||
|
||||
rsync -auP ~/MEGAsync/fedora-backup/fedora-setup/fedora-setup.sh $dotfiles/setup-env
|
||||
rsync -auP ~/MEGAsync/fedora-backup/fedora-setup/deploy-dotfiles.sh $dotfiles/setup-env
|
||||
rsync -auP ~/MEGAsync/fedora-backup/fedora-setup/EASetup.sh $dotfiles/setup-env
|
||||
rsync -$params ~/MEGAsync/fedora-backup/fedora-setup/fedora-setup.sh $dotfiles/setup-env
|
||||
rsync -$params ~/MEGAsync/fedora-backup/fedora-setup/deploy-dotfiles.sh $dotfiles/setup-env
|
||||
rsync -$params ~/MEGAsync/fedora-backup/fedora-setup/EASetup.sh $dotfiles/setup-env
|
||||
|
||||
|
||||
#rsync -auP ~/.config/openbox/autostart $dotfiles/config/openbox
|
||||
rsync -auP ~/.config/openbox/rc.xml $dotfiles/config/openbox
|
||||
rsync -auP ~/.config/openbox/menu.xml $dotfiles/config/openbox
|
||||
#rsync -auP ~/.config/openbox/helper.sh $dotfiles/config/openbox
|
||||
#rsync -auP ~/.config/openbox/mic.sh $dotfiles/config/openbox
|
||||
rsync -auP ~/.config/openbox/VolumeNotify.sh $dotfiles/config/openbox
|
||||
rsync -auP ~/.config/openbox/locker.sh $dotfiles/config/openbox
|
||||
rsync -auP ~/.config/openbox/locker-suspend.sh $dotfiles/config/openbox
|
||||
rsync -auP ~/.config/openbox/desktop-pause.sh $dotfiles/config/openbox
|
||||
#rsync -$params ~/.config/openbox/autostart $dotfiles/config/openbox
|
||||
rsync -$params ~/.config/openbox/rc.xml $dotfiles/config/openbox
|
||||
rsync -$params ~/.config/openbox/menu.xml $dotfiles/config/openbox
|
||||
#rsync -$params ~/.config/openbox/helper.sh $dotfiles/config/openbox
|
||||
#rsync -$params ~/.config/openbox/mic.sh $dotfiles/config/openbox
|
||||
rsync -$params ~/.config/openbox/VolumeNotify.sh $dotfiles/config/openbox
|
||||
rsync -$params ~/.config/openbox/locker.sh $dotfiles/config/openbox
|
||||
rsync -$params ~/.config/openbox/locker-suspend.sh $dotfiles/config/openbox
|
||||
rsync -$params ~/.config/openbox/desktop-pause.sh $dotfiles/config/openbox
|
||||
|
||||
rsync -auP ~/.config/tint2/ $dotfiles/config/tint2
|
||||
rsync -$params ~/.config/tint2/ $dotfiles/config/tint2
|
||||
|
||||
rsync -auP ~/.conky/conkyrc $dotfiles/conky
|
||||
rsync -auP ~/.conky/conky.lua $dotfiles/conky
|
||||
rsync -$params ~/.conky/conkyrc $dotfiles/conky
|
||||
rsync -$params ~/.conky/conky.lua $dotfiles/conky
|
||||
|
||||
rsync -auP ~/.oh-my-zsh/themes/myowntheme* $dotfiles/zsh/oh-my-zsh/themes
|
||||
rsync -auP ~/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh $dotfiles/zsh/oh-my-zsh/themes/spaceship.zsh-theme
|
||||
rsync -$params ~/.oh-my-zsh/themes/myowntheme* $dotfiles/zsh/oh-my-zsh/themes
|
||||
rsync -$params ~/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh $dotfiles/zsh/oh-my-zsh/themes/spaceship.zsh-theme
|
||||
|
||||
rsync -auP ~/.local/share/applications/metasploit-framework.desktop $dotfiles/desktopfiles
|
||||
rsync -auP ~/.local/share/applications/flashtool.desktop $dotfiles/desktopfiles
|
||||
rsync -auP ~/.local/share/applications/megasync.desktop $dotfiles/desktopfiles
|
||||
rsync -$params ~/.local/share/applications/metasploit-framework.desktop $dotfiles/desktopfiles
|
||||
rsync -$params ~/.local/share/applications/flashtool.desktop $dotfiles/desktopfiles
|
||||
rsync -$params ~/.local/share/applications/megasync.desktop $dotfiles/desktopfiles
|
||||
|
Loading…
Reference in New Issue
Block a user