mirror of
https://github.com/turtlebasket/env.git
synced 2026-03-04 11:34:27 -08:00
misc tweaks; cleanup irrelevant
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
wget https://dl.google.com/android/repository/commandlinetools-mac-9123335_latest.zip -O ~/Downloads/as-mac-cli-tools.zip
|
||||
|
||||
mkdir -p ~/opt
|
||||
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from subprocess import run as srun
|
||||
|
||||
DEST="turtlebasket-gdrive:/macbook-air-m1"
|
||||
paths=[
|
||||
"Desktop"
|
||||
"Documents/Personal Knowledge Base"
|
||||
"Documents/Berkeley Notes"
|
||||
]
|
||||
|
||||
with ThreadPoolExecutor(max_workers=4) as executor:
|
||||
for path in paths:
|
||||
fname = path.split("/")[-1]
|
||||
srun("rclone", "sync",
|
||||
path,
|
||||
f'{DEST}/{fname}',
|
||||
"--progress", "--rertries", 1, "--delete-excluded")
|
||||
13
scripts/tmux2
Executable file
13
scripts/tmux2
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# simple wrapper for tmux that creates a new session for current directory if one doesn't exist
|
||||
# meant for scoping sessions by /Projects/<project-name>/
|
||||
|
||||
session="$(basename "$PWD")"
|
||||
|
||||
tmux has-session -t "$session" 2>/dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
exec tmux attach -t "$session"
|
||||
else
|
||||
exec tmux new -s "$session"
|
||||
fi
|
||||
Reference in New Issue
Block a user