* Added /etc/skel/.lftprc - configuration file for lftp.
[grml-etc.git] / etc / skel / .lftprc
1 # Filename:      $HOME/.lftprc
2 # Purpose:       configuration file for lftp
3 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
4 # Bug-Reports:   see http://grml.org/bugs/
5 # License:       This file is licensed under the GPL v2.
6 # Latest change: Sam Nov 25 21:26:40 CET 2006 [mika]
7 ################################################################################
8
9 ## use specific timezone for time in listings returned by LIST command
10 # set ftp:timezone Europe/Berlin
11
12 ## the prompt
13 set cmd:prompt "\[\e[1;30m\][\[\e[0;34m\]\[\e[1m\]\[\e[37m\]\s \v\[\e[1;30m\]] \[\e[1;34m\]\u\[\e[00m\]\@\h\[\e[1;30m\]\[\e[00m\] \w %\[\e[0m\] "
14 # set prompt "lftp \S\? \u\@\h:\w> "
15
16 ## define colors
17 set color:dir-colors "no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
18
19 ## request ssl connection for data transfer between two ftp servers in FXP mode
20 set ftp:ssl-protect-fxp on
21
22 ## some useful aliases
23 alias .. cd ..
24 alias ... cd ../..
25 alias .... cd ../../..
26 alias l dir
27 alias reconnect "close; cache flush; cd ."
28
29 ## default protocol selection
30 set cmd:default-protocol/ftp.*     ftp
31 set cmd:default-protocol/www.*     http
32 set cmd:default-protocol/localhost file
33
34 ## use remote-completion
35 set cmd:remote-completion on
36
37 ## minimal time between reconnects
38 set net:reconnect-interval-base 60
39 ## maximum reconnect interval
40 set net:reconnect-interval-max 60
41
42 ## get commands will not overwrite existing files and generate an error instead
43 set xfer:clobber off
44
45 ## do not send plain text password over the network, use skey/opie instead
46 # set ftp:skey-force on
47
48 ## refuse to send password in clear when server does not support SSL
49 # set ftp:ssl-force on
50
51 ## if default ftp passive mode does not work, try this:
52 # set ftp:passive-mode off
53
54 ## Set this to follow http redirections
55 # set xfer:max-redirections 10
56
57 ## Terminal strings to set titlebars for terminals that don't
58 ## properly specify tsl and fsl capabilities.
59 ## Use cmd:set-term-status to enable this.
60 # set cmd:term-status/*screen* "\e_\T\e\\"
61 # set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
62 # set cmd:term-status/*rxvt* "\e[11;0]\e]2;\T\007\e[11]"
63 # set cmd:set-term-status on
64
65 ## If you don't like advertising lftp or servers hate it, set this:
66 # set ftp:anon-pass "mozilla@"
67 # set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"
68
69 ## this makes lftp faster but doesn't work with some sites/routers
70 # set ftp:sync-mode off
71
72 ## synchronous mode for broken servers and/or routers
73 # set ftp:rest-stor off
74 # set ftp:sync-mode/ftp.idsoftware.com on
75 # set ftp:sync-mode/ftp.microsoft.com on
76 # set ftp:sync-mode/sunsolve.sun.com on
77
78 ## extended regex to match first server message for automatic sync-mode.
79 # set auto-sync-mode "icrosoft FTP Service|MadGoat"
80
81 # try inet6 before inet
82 # set dns:order "inet6 inet"
83
84 ## Proxy setup
85 # set ftp:proxy ftp://[user:pass@]ftp_proxy:port
86 # set ftp:proxy http://squidproxy:port
87 ## no proxy for host
88 # set ftp:proxy/local_host ""
89 ## or domain
90 # set ftp:proxy/*.domain.com ...
91 ## net:no-proxy disables proxy usage for list of domains.
92 # set net:no-proxy .domain.com,.otherdom.net
93
94 ## This can be used for automatic saving of configuration
95 # set at-exit "set > ~/.lftp/settings"
96 # source ~/.lftp/settings
97
98 ## and this is for remembering last site
99 ## (combine with previous rule if you want)
100 # set at-exit "bo a last"
101 # open last
102
103 ## END OF FILE #################################################################