Blame lftp.conf

Packit 8f70b4
## some useful aliases
Packit 8f70b4
alias dir ls
Packit 8f70b4
alias less more
Packit 8f70b4
alias zless zmore
Packit 8f70b4
alias bzless bzmore
Packit 8f70b4
alias reconnect "close; cache flush; cd ."
Packit 8f70b4
Packit 8f70b4
## make prompt look better
Packit 8f70b4
set prompt "lftp \S\? \u\@\h:\w> "
Packit 8f70b4
## some may prefer colors (contributed by Matthew <mwormald@optusnet.com.au>)
Packit 8f70b4
#set prompt "\[\e[1;30m\][\[\e[0;34m\]f\[\e[1m\]t\[\e[37m\]p\[\e[30m\]] \[\e[34m\]\u\[\e[0;34m\]\@\[\e[1m\]\h\[\e[1;30m\]:\[\e[1;34m\]\w\[\e[1;30m\]>\[\e[0m\] "
Packit 8f70b4
## Uncomment the following two lines to make switch cls and ls, making
Packit 8f70b4
## cls the default.
Packit 8f70b4
#alias ls command cls
Packit 8f70b4
#alias hostls command ls
Packit 8f70b4
Packit 8f70b4
## default protocol selection
Packit 8f70b4
#set default-protocol/ftp.*	ftp
Packit 8f70b4
#set default-protocol/www.*	http
Packit 8f70b4
#set default-protocol/localhost	file
Packit 8f70b4
Packit 8f70b4
## this makes lftp faster but doesn't work with some sites/routers
Packit 8f70b4
#set ftp:sync-mode off
Packit 8f70b4
Packit 8f70b4
## synchronous mode for broken servers and/or routers
Packit 8f70b4
set sync-mode/ftp.idsoftware.com on
Packit 8f70b4
set sync-mode/ftp.microsoft.com on
Packit 8f70b4
set sync-mode/sunsolve.sun.com on
Packit 8f70b4
## extended regex to match first server message for automatic sync-mode.
Packit 8f70b4
set auto-sync-mode "icrosoft FTP Service|MadGoat|MikroTik"
Packit 8f70b4
Packit 8f70b4
## if default ftp passive mode does not work, try this:
Packit 8f70b4
# set ftp:passive-mode off
Packit 8f70b4
Packit 8f70b4
## Set this to follow http redirections
Packit 8f70b4
set xfer:max-redirections 10
Packit 8f70b4
Packit 8f70b4
## Proxy can help to pass a firewall
Packit 8f70b4
## Environment variables ftp_proxy, http_proxy and no_proxy are used to
Packit 8f70b4
## initialize the below variables automatically. You can set them here too.
Packit 8f70b4
##
Packit 8f70b4
## ftp:proxy must communicate with client over ftp protocol, squid won't do.
Packit 8f70b4
## This can be e.g. TIS-FWTK or rftpd. User and password are optional.
Packit 8f70b4
# set ftp:proxy ftp://[user:pass@]your_ftp_proxy:port
Packit 8f70b4
## ...but squid still can be used to access ftp servers, using hftp protocol:
Packit 8f70b4
# set ftp:proxy http://your.squid.address:port
Packit 8f70b4
## ...if squid allows CONNECT to arbitrary ports, then you can use CONNECT
Packit 8f70b4
## instead of hftp:
Packit 8f70b4
# set ftp:use-hftp no
Packit 8f70b4
##
Packit 8f70b4
## no proxy for host
Packit 8f70b4
# set ftp:proxy/local_host ""
Packit 8f70b4
## or domain
Packit 8f70b4
# set ftp:proxy/*.domain.com ...
Packit 8f70b4
##
Packit 8f70b4
## http:proxy must communicate with client over http protocol, e.g. squid.
Packit 8f70b4
## Default port is 3128.
Packit 8f70b4
# set http:proxy your_http_proxy[:port]
Packit 8f70b4
## hftp:proxy must also be an http proxy. It is used for FTP over HTTP access.
Packit 8f70b4
# set hftp:proxy your_http_proxy[:port]
Packit 8f70b4
##
Packit 8f70b4
## net:no-proxy disables proxy usage for list of domains.
Packit 8f70b4
# set net:no-proxy .domain.com,.otherdom.net
Packit 8f70b4
Packit 8f70b4
## If you don't have direct ftp access, this setting can be useful to select
Packit 8f70b4
## hftp instead of ftp automatically.
Packit 8f70b4
# set ftp:proxy http://your.http.proxy:port
Packit 8f70b4
Packit 8f70b4
## This can be used for automatic saving of configuration
Packit 8f70b4
# set at-exit "set > ~/.lftp/settings"
Packit 8f70b4
# source ~/.lftp/settings
Packit 8f70b4
Packit 8f70b4
## and this is for remembring last site
Packit 8f70b4
## (combine with previous rule if you want)
Packit 8f70b4
# set at-exit "bo a last"
Packit 8f70b4
# open last
Packit 8f70b4
Packit 8f70b4
## Terminal strings to set titlebars for terminals that don't
Packit 8f70b4
## properly specify tsl and fsl capabilities.
Packit 8f70b4
## Use cmd:set-term-status to enable this.
Packit 8f70b4
set cmd:term-status/*screen* "\e_\T\e\\"
Packit 8f70b4
set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
Packit 8f70b4
set cmd:term-status/*rxvt* "\e[11;0]\e]2;\T\007\e[11]"
Packit 8f70b4
# set cmd:set-term-status on
Packit 8f70b4
Packit 8f70b4
## If you don't like advertising lftp or servers hate it, set this:
Packit 8f70b4
# set ftp:anon-pass "mozilla@"
Packit 8f70b4
# set ftp:client ""
Packit 8f70b4
# set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"