mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Add rtmux function
This commit is contained in:
@@ -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 "$@"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user