diff --git a/rc_shared.sh b/rc_shared.sh index 9f9b8c3..131bce4 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -12,13 +12,11 @@ export PATH="$PATH:~/bin-shared:~/.bin-shared" ## Aliases ## -# Bin Scripts -alias send-master="send_master.sh" - ## Functions ## # Related specifically to this project. + function update-shared { branch="$1" if [[ -z "$branch" ]]; then @@ -41,6 +39,19 @@ alias shared-reload="update-shared" # Shortcuts +function send-master { send_master.sh; } + +# Enhance Bin Scripts + +function send-masters { + ls | grep MASTER | while read dir; do + echo "Preparing to sync '$dir' to '$SERVER_NAME'." + cd $dir + send-master + cd .. + done +} + # Audio # Video