REPO="aw:backup/backup.borg" b-list() { if [[ -z "$1" ]]; then column -t <(borg list "$REPO") else borg list "$REPO"::"$1" fi } b-delete() { if [[ ! -z "$1" ]]; then borg delete "$REPO"::"$1" fi } b-create() { local SUDO="" if command -v sudo > /dev/null; then SUDO="$(command -v sudo)" fi $SUDO /home/stonewareslord/syncthing/me/backup/$(hostname)/backup } b-rename() { borg rename -v "$REPO"::"$1" "$2" } b-cmd() { echo "$REPO" }