aboutsummaryrefslogtreecommitdiff
path: root/Functions/Zftp/zfparams
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zftp/zfparams')
-rw-r--r--Functions/Zftp/zfparams12
1 files changed, 12 insertions, 0 deletions
diff --git a/Functions/Zftp/zfparams b/Functions/Zftp/zfparams
new file mode 100644
index 000000000..5c5262c52
--- /dev/null
+++ b/Functions/Zftp/zfparams
@@ -0,0 +1,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 $*
+# }