# vim: set ft=zsh sw=4 ts=4 sts=4 et : @testvm::sftp() { local _term local testvm_domain=${TESTVM_DOMAIN:-dustin.test} if [ -z "${SSHPASS}" ]; then export SSHPASS='F!r3m0n1' fi case ${TERM} in Alacritty) _term=xterm-256color ;; esac TERM=${_term:-${TERM}} sshpass -e sftp ${1}.${testvm_domain}${2:+:${2}} } @testvm::sftp "$@"