3 ms·
a version that works inside your zsh scripts. there may be a better way to do it t=${@[$#]} c=("ssh" "-t" "${@:1:$(( $# -1 ))}" "${t%:}" "cd ${t##:}; \$SHELL
by rjzzleep 13y ago
a version that works inside your zsh scripts. there may be a better way to do it
t=${@[$#]}
c=("ssh" "-t" "${@:1:$(( $# -1 ))}" "${t%:}" "cd ${t##:}; \$SHELL -l")
"${c[@]}"