From 3119920c9fa5c219494141e02bc3e08cff1dc498 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 14 Aug 2026 13:09:41 -0700 Subject: [PATCH] Begin adding a few root workflows, such as pulling Plex downloads. --- bashrc.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/bashrc.sh b/bashrc.sh index e3df395..eb9227d 100755 --- a/bashrc.sh +++ b/bashrc.sh @@ -354,6 +354,30 @@ alias pull-prod="pull_prod_backups" alias prod-pull="pull_prod_backups" +## Root Workflows ## + +function go-root { + su +} + +plex_dir='/data/user/0/com.plex.app/Plex Media Server/Sync/1' +plex_movie_dir="$plex_dir"/1 +plex_series_dir="$plex_dir"/2 +function plex { + go-root + cd "$plex_dir" +} +function pull-plex { + dest="$1" + if [[ -z "$dest" ]]; then + dest=/sdcard/Movies/ + fi + + go-root + cp -Rv "$plex_dir"/{1,2}/* "$dest" +} + + ## Finalize ## # Export all functions! #