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) 4 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 8 9 10# You can include any other file using the 'include' statement 11#include ~/.yafc/other_preferences 12 13# set password used for anonymous logins 14#anon_password "foo@bar.se" 15 16# attempt to login automagically, using login info in bookmarks 17autologin on 18 19# attempt to reconnect automatically on timed out connection 20autoreconnect on 21 22# quit program if received EOF (C-d) 23quit_on_eof yes 24 25# read bookmark entries from ~/.netrc 26read_netrc yes 27 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 31use_passive_mode yes 32 33# do reverse DNS lookups? 34reverse_dns yes 35 36# show some more information (all replies) 37verbose off 38# print ftp commands sent to server + all replies 39debug off 40# create trace files 41trace off 42 43# If this option is true, filenames will be completed with ... while 44# waiting for the directory listing to be downloaded. 45waiting_dots on 46 47# Custom options that will be passed to SSH. 48# Supports: 49# -l USER; -p PORT; -v; -r; -d; -c CIPHER; -i IDENTITY; -C; -1; -2 50#ssh_options "-c blowfish" 51 52# Try to use scp if connect via ssh. 53ssh_try_scp yes 54 55# set to true to skip query of remote system on connect 56inhibit_startup_syst no 57 58# use environment string to show information 59# can be seen in the process list with 'ps' 60use_env_string yes 61 62# use tab to complete remote files 63remote_completion on 64 65# time (in seconds) before a cached directory times out and needs to 66# be reread, 0 == never 67cache_timeout 0 68 69# auto-create a bookmark when connection is closed? 70auto_bookmark yes # no/yes/ask 71 72# auto-update an existing bookmark when connection is closed? 73auto_bookmark_update yes # no/yes/ask 74 75# by default, if auto_bookmark is true, non-anonymous passwords are not saved 76# anonymous passwords are always saved though 77# if auto_bookmark is 'ask', you will be asked whehter to save password or not 78# remember: passwords are stored in clear text!!! (well, base64-encoded...) 79auto_bookmark_save_passwd NO 80 81# don't print "created bookmark 'foo', bookmarks saved" 82auto_bookmark_silent no 83 84# default type for file transfers 85# ascii mode not recommended since it can mess up binary files 86# see also 'ascii_transfer_mask' below 87default_type binary # ...or ascii 88 89# default security machanisms to use, separated with colon 90# valid arguments are krb4, krb5 and none 91#default_mechanism "krb4:krb5:none" 92#default_mechanism krb4 93 94# filenames matching any of these masks are transferred in ascii mode, 95# ignoring the value of 'default_type' 96# masks are separated by colons (eg. "*.ext1:*.ext2:filename*:") 97# can be overridden with the --type option to get/put 98# case sensitive 99ascii_transfer_mask "README:*.html:*.htm:*.txt" 100ascii_transfer_mask "*.dsc:*.lsm:*.md5" 101 102# filenames matching any of these masks are transferred before other files 103transfer_first_mask "*.sfv:*.nfo:*.txt:README*:md5sum*:*.md5:*.diz" 104 105# filenames matching any of these masks are not transferred 106ignore_mask ".svn:.git*" 107 108# how many files to transfer to show transfer stats 109# you can also specify this per-transfer with --stats=NUM 110stats_threshold 20 111 112# beep after a 'long' command is finished 113beep_after_long_command yes 114 115# number of seconds for command to become 'long' 116long_command_time 30 117 118# how long (in seconds) before aborting a command without response 119command_timeout 42 120# how long (in seconds) before aborting a connection without response 121connection_timeout 30 122 123# number of times to try to re-connect if login failed (due to busy server) 124# -1 for unlimited number of tries, 0 to disable 125connect_attempts 10 126# number of seconds to wait between connection attempts 127connect_wait_time 30 128 129# save and load history lines in ~/.yafc/history 130# (this is a no-op if not compiled with readline) 131use_history yes 132 133# max number of history lines to save 134# (this is a no-op if not compiled with readline) 135history_max 256 136 137# Yafc will cd to this (local) directory upon startup 138#startup_local_directory ~/download 139 140# if set, Yafc sends mail to this address when nohup transfers are finished 141#nohup_mailaddress someusername@somedomain 142 143# complete path to sendmail used by nohup_mailaddress above 144#sendmail_path "/usr/sbin/sendmail" 145 146# load saved taglist on connect to same site? 147# if no, taglist will never be saved 148load_taglist yes # yes/no/ask 149 150# display ~ instead of full home directory path for various commands 151tilde yes 152 153# aliases (on the form [alias name value]) 154# can't make an alias of another alias 155 156alias dir "ls -lF" 157alias ls "ls -F" 158alias rels "cache --touch %*; ls -F %*" 159alias pls "ls -F %* |$PAGER" 160alias bye quit 161alias ? "help" 162alias binary "set type binary" 163alias ascii "set type ascii" 164alias get "get --verbose --preserve" 165alias put "put --verbose" 166alias rm "rm --verbose" 167alias lrm "shell rm" 168alias lls "shell ls -F" 169alias lmkdir "shell mkdir" 170alias lrmdir "shell rmdir" 171alias lcat "!cat" 172alias zcat "cat --type=binary %* | zcat" 173alias bzcat "cat --type=binary %* | bzcat" 174alias page "cat --type=ascii %* | $PAGER" 175alias zpage "cat --type=binary %* | zcat | $PAGER" 176alias bzpage "cat --type=binary %* | bzcat | $PAGER" 177alias show_trace "!$PAGER $HOME/.yafc/trace/trace.$PPID" 178 179# ftp prompts 180# 181# special codes: 182# %u username 183# %h remote host name (as passed to open) 184# %H %h up to the first '.' 185# %m remote machine name (as returned by gethostbyname) 186# %M %m up to the first '.' 187# %n remote ip number 188# %[#]w current remote working directory 189# %W basename of %w 190# %[#]~ as %w but home directory is replaced with ~ 191# %[#]l current local working directory 192# %% percent sign 193# %# a '#' if (local) user is root, else '$' 194# %c number of open connections 195# %C current connection number 196# %{ begin sequence of non-printing chars, ie escape codes 197# %} end -"- 198# \e escape (0x1B) 199# \n newline 200# \t tab 201# \r carriage return 202# \b backspace 203# \x## character 0x## (hex) 204# 205# [#] means an optional width specifier can be specified 206# example: %32w 207# 208# you can put escape codes here, for example if you want a colored prompt 209# "%{\e[01;31m%}ftp%{\e[0m%}" will be "ftp" in red, if your terminal supports 210# ISO 6429 (ANSI) color codes. 211# 212# note: the %{ and %} codes are needed for readline to correctly wrap 213# lines with embedded escape codes 214# 215# (ANSI) Attribute codes: 216# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed 217# Text color codes: 218# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white 219# Background color codes: 220# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white 221 222prompt1 "yafc> " # not connected 223prompt2 "yafc %h> " # connected but not logged in 224prompt3 "yafc %u@%h:%42~> " # connected and logged in 225 226# Xterm window titles 227# same codes as for the prompts above 228# see the Xterm-title mini-HOWTO for more information 229xterm_title1 "\e]0;yafc\x07" # not connected 230xterm_title2 "\e]0;yafc %h\x07" # connected but not logged in 231xterm_title3 "\e]0;yafc %u@%h:%~\x07" # connected and logged in 232 233# $TERM's which can handle xterm escape sequences 234xterm_title_terms "xterm xterm-debian rxvt" 235 236# transfer status string codes 237# these strings are printed with the --verbose option to get/put 238# 239# %r - remote filename (actually _source_ filename) 240# %R - remote filename w/path (actually _source_ filename) 241# %l - local filename (actually _target_ filename) 242# %L - local filename w/path (actually _target_ filename) 243# %s - size transferred so far 244# %S - total size (if available) 245# %e - ETA (time left) 246# %p - percent transferred 247# %% - percent sign 248# %b - transfer rate (Bps) 249# %B - transfer rate (Bps) or "stalled" if stalled 250# %t - time elapsed 251# %v - visual progress bar 252# %{ - begin sequence of non-printing chars, ie escape codes 253# %} - end sequence of non-printing chars 254# 255# you can specify an (optional) max width between the '%' and 256# the character code 257# escape codes are recognized (enclose in %{ and %} pairs) 258 259# this string is printed before the actual transfer begins 260#transfer_begin_string "%{\e[32m%}%-70R%{\e[0m%}\n" 261transfer_begin_string "%-70R\n" 262 263# this string is printed (approx.) every second or so during the transfer 264# with a trailing carriage return 265#transfer_string "%-38R [%25v] %B" 266#transfer_string "%-35R %s of %S ETA %e %B" 267#transfer_string "%5p%% [%{\e[32m%}%25v%{\e[0m%}] %s/%S ETA %{\e[32m%}%e%{\e[0m%} %B" 268transfer_string "%5p%% [%25v] %s/%S ETA %e %B" 269 270# this string is printed when the transfer is finished 271#transfer_end_string "%-35R %p%% of %S in %t (%b)\n" 272transfer_end_string "" 273 274# this string is printed at the same time as transfer_string if current 275# $TERM is defined in xterm_title_terms 276# Use to show dynamic info in the xterm title bar 277transfer_xterm_string "\e]0;%p%% - %R - yafc\x07" 278 279 280# 281# Proxy settings 282# 283 284# proxy_type is the type of proxy, valid arguments: 285# 286# 0 - no proxy (default) 287# 1 - connect to proxy, USER real_user@real_host, PASS real_password 288# 2 - login to proxy, USER real_user@real_host, PASS real_password 289# 3 - login to proxy, SITE real_host, USER real_user, PASS real_password 290# 4 - login to proxy, OPEN real_host, USER real_user, PASS real_password 291# 5 - connect to proxy, USER real_user@proxy_user@real_host, PASS real_password@proxy_password 292# 6 - connect to proxy, USER proxy_user@real_host, PASS proxy_password, USER realuser, PASS real_password 293# 7 - connect to proxy, USER real_user@real_host:real_port, PASS real_password 294 295proxy_type 0 296 297# the proxy host to connect to including 298# username, password and port (all optional) 299# if username or password not given, you will 300# be prompted for it 301#proxy_host user:pass@host:port 302# examples: 303# connect to proxy host at port 21, prompt for username and password: 304#proxy_host host 305# connect to proxy host at port 4711, use username nisse and prompt for password: 306#proxy_host nisse@host:4711 307 308# list of hosts to exclude from proxying (separated with colon) 309# 'localnet' specifies unqualified hosts (within your domain) 310proxy_exclude localhost:localnet 311 312# end of configuration file 313