# include ~/.yafc/other_preferences anon_password "wolfram+anonftp@schlich.org" autologin on autoreconnect on quit_on_eof yes read_netrc yes use_passive_mode yes reverse_dns yes verbose off debug off trace off # ssh_program "/usr/bin/ssh" # sftp_server_program "/usr/libexec/sftp-server" inhibit_startup_syst no use_env_string yes remote_completion on auto_bookmark yes # no/yes/ask auto_bookmark_save_passwd NO auto_bookmark_silent no default_type binary # ...or ascii # default_mechanism "krb4:krb5:none" # default_mechanism krb4 ascii_transfer_mask "README:HEADER:*.html:*.htm:*.shtml:*.txt:*.php:*.php3:*.php4:*.phtml:*.css" ascii_transfer_mask "*.dsc:*.lsm:*.md5" beep_after_long_command yes long_command_time 30 command_timeout 45 connection_timeout 30 connect_attempts 10 connect_wait_time 30 use_history yes history_max 256 # startup_local_directory ~/tmp # nohup_mailaddress wschlich@lan.berghof.org # sendmail_path "/usr/sbin/sendmail" load_taglist yes # yes/no/ask tilde yes # can't make an alias of another alias alias bye "quit" alias exit "quit" alias ? "help" alias binary "set type binary" alias ascii "set type ascii" alias get "get --verbose --preserve" alias put "put --verbose" alias rm "rm --verbose" alias ls "ls -a -F --color=auto" alias rels "cache --touch %*; ls -a -F --color=auto %*" alias pls "ls -a -F --color=auto %* |$PAGER" alias lrm "!rm -i" alias lmv "!mv -i" alias lcp "!cp -i" alias lls "!ls -h -N --color=tty -T 0" alias lmkdir "!mkdir" alias lrmdir "!rmdir" alias lcat "!cat" alias zcat "cat --type=binary %* | zcat" alias bzcat "cat --type=binary %* | bzcat" alias page "cat --type=ascii %* | $PAGER" alias zpage "cat --type=binary %* | zcat | $PAGER" alias bzpage "cat --type=binary %* | bzcat | $PAGER" alias show_trace "!$PAGER $HOME/.yafc/trace/trace.$PPID" # ftp prompts # # special codes: # %u username # %h remote host name (as passed to open) # %H %h up to the first '.' # %m remote machine name (as returned by gethostbyname) # %M %m up to the first '.' # %n remote ip number # %[#]w current remote working directory # %W basename of %w # %[#]~ as %w but home directory is replaced with ~ # %[#]l current local working directory # %% percent sign # %# a '#' if (local) user is root, else '$' # %c number of open connections # %C current connection number # %{ begin sequence of non-printing chars, ie escape codes # %} end -"- # \e escape (0x1B) # \n newline # \t tab # \r carriage return # \b backspace # \x## character 0x## (hex) # # [#] means an optional width specifier can be specified # example: %32w # # you can put escape codes here, for example if you want a colored prompt # "%{\e[01;31m%}ftp%{\e[0m%}" will be "ftp" in red, if your terminal supports # ISO 6429 (ANSI) color codes. # # note: the %{ and %} codes are needed for readline to correctly wrap # lines with embedded escape codes # # (ANSI) Attribute codes: # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes: # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white # Background color codes: # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white # 1: not connected, 2: connected but not logged in, 3: connected and logged in prompt1 "%{\e[1m%}[yafc%{\e[0m%}%{\e[1m%}]%{\e[0m%}%{\e[1m%}%{\e[31m%}%#%{\e[0m%} " prompt2 "%{\e[1m%}[yafc%{\e[0m%} %{\e[1m%}%{\e[32m%}%h%{\e[0m%}%{\e[1m%}]%{\e[0m%}%{\e[1m%}%{\e[31m%}%#%{\e[0m%} " prompt3 "%{\e[1m%}[yafc%{\e[0m%} %{\e[1m%}%{\e[36m%}%u%{\e[0m%}@%{\e[1m%}%{\e[32m%}%h%{\e[0m%}(%{\e[1m%}%{\e[35m%}%C%{\e[0m%}):%{\e[1m%}%{\e[33m%}%42~%{\e[0m%}%{\e[1m%}]%{\e[0m%}%{\e[1m%}%{\e[31m%}%#%{\e[0m%} " # 1: not connected, 2: connected but not logged in, 3: connected and logged in xterm_title1 "\e]0;yafc\x07" xterm_title2 "\e]0;yafc %h\x07" xterm_title3 "\e]0;yafc %u@%h:%~\x07" xterm_title_terms "xterm xterm-debian rxvt" # transfer status string codes # these strings are printed with the --verbose option to get/put # # %r - remote filename (actually _source_ filename) # %R - remote filename w/path (actually _source_ filename) # %l - local filename (actually _target_ filename) # %L - local filename w/path (actually _target_ filename) # %s - size transferred so far # %S - total size (if available) # %e - ETA (time left) # %p - percent transferred # %% - percent sign # %b - transfer rate (Bps) # %B - transfer rate (Bps) or "stalled" if stalled # %t - time elapsed # %v - visual progress bar # %{ - begin sequence of non-printing chars, ie escape codes # %} - end sequence of non-printing chars # # you can specify an (optional) max width between the '%' and # the character code # escape codes are recognized (enclose in %{ and %} pairs) transfer_begin_string "%{\e[32m%}%R%{\e[0m%}...\n" transfer_string "%5p%% [%{\e[1m%}%{\e[32m%}%25v%{\e[0m%}] %s/%S ETA %{\e[1m%}%{\e[32m%}%e%{\e[0m%} %B" transfer_end_string "%{\e[1m%}%{\e[32m%}%-70R%{\e[0m%} \t%p%% of %S in %t (%b)\n" transfer_xterm_string "\e]0;%p%% - %R - yafc\x07" # 0 - no proxy (default) # 1 - connect to proxy, USER real_user@real_host, PASS real_password # 2 - login to proxy, USER real_user@real_host, PASS real_password # 3 - login to proxy, SITE real_host, USER real_user, PASS real_password # 4 - login to proxy, OPEN real_host, USER real_user, PASS real_password # 5 - connect to proxy, USER real_user@proxy_user@real_host, PASS real_password@proxy_password # 6 - connect to proxy, USER proxy_user@real_host, PASS proxy_password, USER realuser, PASS real_password proxy_type 0 # proxy_host user:pass@host:port # proxy_host host # proxy_host nisse@host:4711 proxy_exclude localhost:localnet