Add rtmux function

This commit is contained in:
David Tomaschik
2024-10-25 22:26:49 -07:00
parent c6fe0ff1c8
commit 560f803455

View File

@@ -25,3 +25,13 @@ unset _STARSHIP_PATH
function hashall { function hashall {
tee >(md5sum) | tee >(sha1sum) | sha256sum tee >(md5sum) | tee >(sha1sum) | sha256sum
} }
function rtmux {
if [ "$#" -lt 1 ] ; then
echo "Usage: $0 <host> [tmux args]" >&2
return 1
fi
HOST="${1}"
shift
ssh -t ${HOST} -- tmux "$@"
}