1 # sample config file for Yafc -*- sh -*-
2 # If you plan to save passwords in this file,
3 # make sure permissions is no more than 0600 (chmod 0600 yafcrc)
5 # blank lines and text between #'s and EOL are skipped
6 # boolean values can be specified as 1/0, true/false, yes/no, on/off
7 # strings must be enclosed in quotes ("" or '') if it contains spaces
10 # You can include any other file using the 'include' statement
11 #include ~/.yafc/other_preferences
13 # set password used for anonymous logins
14 #anon_password "foo@bar.se"
16 # attempt to login automagically, using login info in bookmarks
19 # attempt to reconnect automatically on timed out connection
22 # quit program if received EOF (C-d)
25 # read bookmark entries from ~/.netrc
28 # use passive mode connections
29 # if false, use sendport mode
30 # if you get the message "Host doesn't support passive mode", set to false
33 # do reverse DNS lookups?
36 # show some more information (all replies)
38 # print ftp commands sent to server + all replies
43 # path to the SSH program
44 ssh_program "/usr/pkg/bin/ssh"
46 # path to the remote sftp-server program
47 # leave commented to use sftp subsystem (requires ssh > 2.3.0)
48 #sftp_server_program "/usr/libexec/sftp-server"
50 # set to true to skip query of remote system on connect
51 inhibit_startup_syst no
53 # use environment string to show information
54 # can be seen in the process list with 'ps'
57 # use tab to complete remote files
60 # auto-create a bookmark when connection closed?
61 auto_bookmark yes # no/yes/ask
63 # by default, if auto_bookmark is true, non-anonymous passwords are not saved
64 # anonymous passwords are always saved though
65 # if auto_bookmark is 'ask', you will be asked whehter to save password or not
66 # remember: passwords are stored in clear text!!! (well, base64-encoded...)
67 auto_bookmark_save_passwd NO
69 # don't print "created bookmark 'foo', bookmarks saved"
70 auto_bookmark_silent no
72 # default type for file transfers
73 # ascii mode not recommended since it can mess up binary files
74 # see also 'ascii_transfer_mask' below
75 default_type binary # ...or ascii
77 # default security machanisms to use, separated with colon
78 # valid arguments are krb4, krb5 and none
79 #default_mechanism "krb4:krb5:none"
80 #default_mechanism krb4
82 # filenames matching any of these masks are transferred in ascii mode,
83 # ignoring the value of 'default_type'
84 # masks are separated by colons (eg. "*.ext1:*.ext2:filename*:")
85 # can be overridden with the --type option to get/put
87 ascii_transfer_mask "README:*.html:*.htm:*.txt"
88 ascii_transfer_mask "*.dsc:*.lsm:*.md5"
90 # beep after a 'long' command is finished
91 beep_after_long_command yes
93 # number of seconds for command to become 'long'
96 # how long (in seconds) before aborting a command without response
98 # how long (in seconds) before aborting a connection without response
101 # number of times to try to re-connect if login failed (due to busy server)
102 # -1 for unlimited number of tries, 0 to disable
104 # number of seconds to wait between connection attempts
107 # save and load history lines in ~/.yafc/history
108 # (this is a no-op if not compiled with readline)
111 # max number of history lines to save
112 # (this is a no-op if not compiled with readline)
115 # Yafc will cd to this (local) directory upon startup
116 #startup_local_directory ~/download
118 # if set, Yafc sends mail to this address when nohup transfers are finished
119 #nohup_mailaddress someusername@somedomain
121 # complete path to sendmail used by nohup_mailaddress above
122 #sendmail_path "/usr/sbin/sendmail"
124 # load saved taglist on connect to same site?
125 # if no, taglist will never be saved
126 load_taglist yes # yes/no/ask
128 # display ~ instead of full home directory path for various commands
131 # aliases (on the form [alias name value])
132 # can't make an alias of another alias
136 alias rels "cache --touch %*; ls -F %*"
137 alias pls "ls -F %* |$PAGER"
141 alias binary "set type binary"
142 alias ascii "set type ascii"
143 alias get "get --verbose --preserve"
144 alias put "put --verbose"
145 alias rm "rm --verbose"
147 alias lls "shell ls -F"
148 alias lmkdir "shell mkdir"
149 alias lrmdir "shell rmdir"
151 alias zcat "cat --type=binary %* | zcat"
152 alias bzcat "cat --type=binary %* | bzcat"
153 alias page "cat --type=ascii %* | $PAGER"
154 alias zpage "cat --type=binary %* | zcat | $PAGER"
155 alias bzpage "cat --type=binary %* | bzcat | $PAGER"
156 alias show_trace "!$PAGER $HOME/.yafc/trace/trace.$PPID"
162 # %h remote host name (as passed to open)
163 # %H %h up to the first '.'
164 # %m remote machine name (as returned by gethostbyname)
165 # %M %m up to the first '.'
166 # %n remote ip number
167 # %[#]w current remote working directory
169 # %[#]~ as %w but home directory is replaced with ~
170 # %[#]l current local working directory
172 # %# a '#' if (local) user is root, else '$'
173 # %c number of open connections
174 # %C current connection number
175 # %{ begin sequence of non-printing chars, ie escape codes
182 # \x## character 0x## (hex)
184 # [#] means an optional width specifier can be specified
187 # you can put escape codes here, for example if you want a colored prompt
188 # "%{\e[01;31m%}ftp%{\e[0m%}" will be "ftp" in red, if your terminal supports
189 # ISO 6429 (ANSI) color codes.
191 # note: the %{ and %} codes are needed for readline to correctly wrap
192 # lines with embedded escape codes
194 # (ANSI) Attribute codes:
195 # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
197 # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
198 # Background color codes:
199 # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
201 prompt1 "yafc> " # not connected
202 prompt2 "yafc %h> " # connected but not logged in
203 prompt3 "yafc %u@%h:%42~> " # connected and logged in
205 # Xterm window titles
206 # same codes as for the prompts above
207 # see the Xterm-title mini-HOWTO for more information
208 xterm_title1 "\e]0;yafc\x07" # not connected
209 xterm_title2 "\e]0;yafc %h\x07" # connected but not logged in
210 xterm_title3 "\e]0;yafc %u@%h:%~\x07" # connected and logged in
212 # $TERM's which can handle xterm escape sequences
213 xterm_title_terms "xterm xterm-debian rxvt"
215 # transfer status string codes
216 # these strings are printed with the --verbose option to get/put
218 # %r - remote filename (actually _source_ filename)
219 # %R - remote filename w/path (actually _source_ filename)
220 # %l - local filename (actually _target_ filename)
221 # %L - local filename w/path (actually _target_ filename)
222 # %s - size transferred so far
223 # %S - total size (if available)
224 # %e - ETA (time left)
225 # %p - percent transferred
227 # %b - transfer rate (Bps)
228 # %B - transfer rate (Bps) or "stalled" if stalled
230 # %v - visual progress bar
231 # %{ - begin sequence of non-printing chars, ie escape codes
232 # %} - end sequence of non-printing chars
234 # you can specify an (optional) max width between the '%' and
236 # escape codes are recognized (enclose in %{ and %} pairs)
238 # this string is printed before the actual transfer begins
239 #transfer_begin_string "%{\e[32m%}%-70R%{\e[0m%}\n"
240 transfer_begin_string "%-70R\n"
242 # this string is printed (approx.) every second or so during the transfer
243 # with a trailing carriage return
244 #transfer_string "%-38R [%25v] %B"
245 #transfer_string "%-35R %s of %S ETA %e %B"
246 #transfer_string "%5p%% [%{\e[32m%}%25v%{\e[0m%}] %s/%S ETA %{\e[32m%}%e%{\e[0m%} %B"
247 transfer_string "%5p%% [%25v] %s/%S ETA %e %B"
249 # this string is printed when the transfer is finished
250 #transfer_end_string "%-35R %p%% of %S in %t (%b)\n"
251 transfer_end_string ""
253 # this string is printed at the same time as transfer_string if current
254 # $TERM is defined in xterm_title_terms
255 # Use to show dynamic info in the xterm title bar
256 transfer_xterm_string "\e]0;%p%% - %R - yafc\x07"
263 # proxy_type is the type of proxy, valid arguments:
265 # 0 - no proxy (default)
266 # 1 - connect to proxy, USER real_user@real_host, PASS real_password
267 # 2 - login to proxy, USER real_user@real_host, PASS real_password
268 # 3 - login to proxy, SITE real_host, USER real_user, PASS real_password
269 # 4 - login to proxy, OPEN real_host, USER real_user, PASS real_password
270 # 5 - connect to proxy, USER real_user@proxy_user@real_host, PASS real_password@proxy_password
271 # 6 - connect to proxy, USER proxy_user@real_host, PASS proxy_password, USER realuser, PASS real_password
275 # the proxy host to connect to including
276 # username, password and port (all optional)
277 # if username or password not given, you will
279 #proxy_host user:pass@host:port
281 # connect to proxy host at port 21, prompt for username and password:
283 # connect to proxy host at port 4711, use username nisse and prompt for password:
284 #proxy_host nisse@host:4711
286 # list of hosts to exclude from proxying (separated with colon)
287 # 'localnet' specifies unqualified hosts (within your domain)
288 proxy_exclude localhost:localnet
290 # end of configuration file