1 2 3 4 5 6 7 8 9 10 11 12
# function zfparams { emulate -L zsh # Set to prompt for any user or password if not given. # Don't worry about accounts here. if (( $# > 0 )); then (( $# < 2 )) && 2='?' (( $# < 3 )) && 3='?' fi zftp params $* # }