Recovered lost code from other libraries

This commit is contained in:
Queue A
2026-06-03 06:36:09 +02:00
parent d66d2fd4ca
commit efdf7d6f0f
4 changed files with 80 additions and 24 deletions

13
bash/thismux.sh Normal file
View File

@@ -0,0 +1,13 @@
thismux() {
dir="$(pwd)"
# Search upwards for `.run/thismux.sock`
while [ "$dir" != "/" ]; do
if [ -d "$dir/.run" ]; then
tmux -S "$dir/.run/thismux.sock" "$@"
return
fi
dir="$(dirname "$dir")"
done
echo "No .run found in any parent directory."
return 1
}