#!/bin/bash #Collection of funtions and aliases to automate the redundant tasks. #First let's declare a few variables export company="SCAR-719" update-DOTFiles() { #This command takes the local copies and puts them into the git repo for updating rsync -rhHAX /etc/portage/* $HOME/Projects/$company/repos/DOT-Files/gentoo/gentooamd/etc/portage/. ; rsync -rhHAX /etc/kernels/kernel-config-$(uname -r) $HOME/Projects/$company/repos/DOT-Files/gentoo/gentooamd/kernel/. ; rsync -rhHAX --exclude="heroic" --exclude="quassel-irc.org" --exclude="google-chrome" --exclude="PCSX2" --exclude="transmission" --exclude="legendary" --exclude="Element" \ --exclude="balena-etcher-electron" --exclude="discord" --exclude="discord.bak" --exclude="heroic" --exclude="Slack" --exclude="Code" --exclude="Epic" --exclude="obs-studio/logs" --exclude="obs-studio/profiler_data" --exclude="BraveSoftware" --exclude="vivaldi" \ --exclude="microsoft-edge" \ $HOME/.config/* $HOME/Projects/$company/repos/DOT-Files/gentoo/gentooamd/home/user/.config/. ; rsync -rhHAX $HOME/.*rc $HOME/Projects/$company/repos/DOT-Files/gentoo/gentooamd/home/user/. ; cd /home/ganome/Projects/$company/repos/DOT-Files ; git pull ; git add .; git commit -am "Automated updated process of shell scripts and DOT Files (gentooamd)" ; git push; cd - ; } replace-DOTFile() { #This command takes the git repo configs and moves them onto the local machine - in case remote edits were done and local machine needs updating rsync -rhHAX /home/ganome/Projects/$company/repos/DOT-Files/gentoo/gentooamd/home/user/.bashrc /home/ganome/. ; rsync -rhHAX /home/ganome/Projects/$company/repos/DOT-Files/gentoo/gentooamd/home/user/.config/shellconfig/* /home/ganome/.config/shellconfig/. ; }