]> gitweb @ CieloNegro.org - sugar.git/blob - dot-files/_yafc/yafcrc
Auto commit by The Sugar System.
[sugar.git] / dot-files / _yafc / yafcrc
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
17 autologin on
18
19 # attempt to reconnect automatically on timed out connection
20 autoreconnect on
21
22 # quit program if received EOF (C-d)
23 quit_on_eof yes
24
25 # read bookmark entries from ~/.netrc
26 read_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
31 use_passive_mode yes
32
33 # do reverse DNS lookups?
34 reverse_dns yes
35
36 # show some more information (all replies)
37 verbose off
38 # print ftp commands sent to server + all replies
39 debug off
40 # create trace files
41 trace off
42
43 # path to the SSH program
44 ssh_program "/usr/pkg/bin/ssh"
45
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"
49
50 # set to true to skip query of remote system on connect
51 inhibit_startup_syst no
52
53 # use environment string to show information
54 # can be seen in the process list with 'ps'
55 use_env_string yes
56
57 # use tab to complete remote files
58 remote_completion on
59
60 # auto-create a bookmark when connection closed?
61 auto_bookmark yes # no/yes/ask
62
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
68
69 # don't print "created bookmark 'foo', bookmarks saved"
70 auto_bookmark_silent no
71
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
76
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
81
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
86 # case sensitive
87 ascii_transfer_mask "README:*.html:*.htm:*.txt"
88 ascii_transfer_mask "*.dsc:*.lsm:*.md5"
89
90 # beep after a 'long' command is finished
91 beep_after_long_command yes
92
93 # number of seconds for command to become 'long'
94 long_command_time 30
95
96 # how long (in seconds) before aborting a command without response
97 command_timeout 42
98 # how long (in seconds) before aborting a connection without response
99 connection_timeout 30
100
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
103 connect_attempts 10
104 # number of seconds to wait between connection attempts
105 connect_wait_time 30
106
107 # save and load history lines in ~/.yafc/history
108 # (this is a no-op if not compiled with readline)
109 use_history yes
110
111 # max number of history lines to save
112 # (this is a no-op if not compiled with readline)
113 history_max 256
114
115 # Yafc will cd to this (local) directory upon startup
116 #startup_local_directory ~/download
117
118 # if set, Yafc sends mail to this address when nohup transfers are finished
119 #nohup_mailaddress someusername@somedomain
120
121 # complete path to sendmail used by nohup_mailaddress above
122 #sendmail_path "/usr/sbin/sendmail"
123
124 # load saved taglist on connect to same site?
125 # if no, taglist will never be saved
126 load_taglist yes # yes/no/ask
127
128 # display ~ instead of full home directory path for various commands
129 tilde yes
130
131 # aliases (on the form [alias name value])
132 # can't make an alias of another alias
133
134 alias dir "ls -lF"
135 alias ls "ls -F"
136 alias rels "cache --touch %*; ls -F %*"
137 alias pls "ls -F %* |$PAGER"
138 alias bye quit
139 alias exit quit
140 alias ? "help"
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"
146 alias lrm "shell rm"
147 alias lls "shell ls -F"
148 alias lmkdir "shell mkdir"
149 alias lrmdir "shell rmdir"
150 alias lcat "!cat"
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"
157
158 # ftp prompts
159 #
160 # special codes:
161 # %u      username
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
168 # %W      basename of %w
169 # %[#]~   as %w but home directory is replaced with ~
170 # %[#]l   current local working directory
171 # %%      percent sign
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
176 # %}      end      -"-
177 # \e      escape (0x1B)
178 # \n      newline
179 # \t      tab
180 # \r      carriage return
181 # \b      backspace
182 # \x##    character 0x## (hex)
183 #
184 # [#] means an optional width specifier can be specified
185 #  example: %32w
186 #
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.
190 #
191 # note: the %{ and %} codes are needed for readline to correctly wrap
192 #  lines with embedded escape codes
193 #
194 # (ANSI) Attribute codes:
195 # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
196 # Text color codes:
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
200
201 prompt1 "yafc> "                    # not connected
202 prompt2 "yafc %h> "                 # connected but not logged in
203 prompt3 "yafc %u@%h:%42~> "         # connected and logged in
204
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
211
212 # $TERM's which can handle xterm escape sequences
213 xterm_title_terms "xterm xterm-debian rxvt"
214
215 # transfer status string codes
216 # these strings are printed with the --verbose option to get/put
217
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
226 # %%   - percent sign
227 # %b   - transfer rate (Bps)
228 # %B   - transfer rate (Bps) or "stalled" if stalled
229 # %t   - time elapsed
230 # %v   - visual progress bar
231 # %{   - begin sequence of non-printing chars, ie escape codes
232 # %}   - end sequence of non-printing chars
233 #
234 # you can specify an (optional) max width between the '%' and
235 # the character code
236 # escape codes are recognized (enclose in %{ and %} pairs)
237
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"
241
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"
248
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 ""
252
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"
257
258
259 #
260 # Proxy settings
261 #
262
263 # proxy_type is the type of proxy, valid arguments:
264 #
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
272
273 proxy_type 0
274
275 # the proxy host to connect to including
276 # username, password and port (all optional)
277 # if username or password not given, you will
278 # be prompted for it
279 #proxy_host user:pass@host:port
280 # examples:
281 # connect to proxy host at port 21, prompt for username and password:
282 #proxy_host host
283 # connect to proxy host at port 4711, use username nisse and prompt for password:
284 #proxy_host nisse@host:4711
285
286 # list of hosts to exclude from proxying (separated with colon)
287 # 'localnet' specifies unqualified hosts (within your domain)
288 proxy_exclude localhost:localnet
289
290 # end of configuration file