diff --git a/dotfiles/zshrc.d/functions.zsh b/dotfiles/zshrc.d/functions.zsh index fac09e7..8997b98 100644 --- a/dotfiles/zshrc.d/functions.zsh +++ b/dotfiles/zshrc.d/functions.zsh @@ -25,3 +25,13 @@ unset _STARSHIP_PATH function hashall { tee >(md5sum) | tee >(sha1sum) | sha256sum } + +function rtmux { + if [ "$#" -lt 1 ] ; then + echo "Usage: $0 [tmux args]" >&2 + return 1 + fi + HOST="${1}" + shift + ssh -t ${HOST} -- tmux "$@" +}