File: lftp.conf

package info (click to toggle)
lftp 2.4.9-1woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,540 kB
  • ctags: 7,136
  • sloc: ansic: 40,411; cpp: 33,756; sh: 7,589; yacc: 1,177; makefile: 789; perl: 23
file content (76 lines) | stat: -rw-r--r-- 2,792 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
## some useful aliases
alias dir ls
alias less more
alias zless zmore
alias bzless bzmore

## make prompt look better
set prompt "lftp \u\@\h:\w> "
## some may prefer colors (contributed by DA <mwormald@optushome.com.au>)
#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\] "
## Uncomment the following two lines to make switch cls and ls, making
## colored ls the default.
#alias ls cls
#alias hostls ls

## default protocol selection
#set default-protocol/ftp.*	ftp
#set default-protocol/www.*	http
#set default-protocol/localhost	file

## this makes lftp faster but doesn't work with some sites/routers
# set ftp:sync-mode off

## synchronous mode for broken servers and/or routers
set sync-mode/ftp.idsoftware.com on
set sync-mode/ftp.microsoft.com on
set sync-mode/sunsolve.sun.com on
## extended regex to match first server message for automatic sync-mode.
set auto-sync-mode "icrosoft FTP Service"

## if default ftp passive mode does not work, try this:
# set ftp:passive-mode off

## Set this to follow http redirections
set xfer:max-redirections 10

## Proxy can help to pass a firewall
## Environment variables ftp_proxy, http_proxy and no_proxy are used to
## initialize the below variables automatically. You can set them here too.
##
## ftp:proxy must communicate with client over ftp protocol, squid won't do.
## This can be e.g. TIS-FWTK or rftpd. User and password are optional.
# set ftp:proxy [user:pass@]your_ftp_proxy:port
## no proxy for host
# set ftp:proxy/local_host ""
## or domain
# set ftp:proxy/*.domain.com ...
## http:proxy must communicate with client over http protocol, e.g. squid.
## Default port is 3128.
# set http:proxy your_http_proxy[:port]
## hftp:proxy must also be an http proxy. It is used for FTP over HTTP access.
# set hftp:proxy your_http_proxy[:port]
## net:no-proxy disables proxy usage for list of domains.
# set net:no-proxy .domain.com,.otherdom.net

## If you don't have direct ftp access, this setting can be useful to select
## hftp instead of ftp automatically.
# set ftp:proxy http://your.http.proxy:port

## This can be used for automatic saving of configuration
# set at-exit "set > ~/.lftp/settings"
# source ~/.lftp/settings

## and this is for remembring last site
## (combine with previous rule if you want)
# set at-exit "bo a last"
# open last

## Strings to set titlebars.  Use cmd:set-term-status to enable this.
set cmd:term-status/*screen* "\e_\T\e\\"
set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
set cmd:term-status/*rxvt* "\e[11;0]\e]2;\T\007\e[11]"

## If you don't like advertising lftp or servers hate it, set this:
# set ftp:anon-pass "mozilla@"
# set http:user-agent "Mozilla/4.7 [en] (Linux; U)"