1 # lftp configuration file.
3 # Copyright (C) 2007-2013 Simon Ruderich
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this file. If not, see <http://www.gnu.org/licenses/>.
21 # Display all files (including hidden ones) with `ls`.
22 set ftp:list-options -a
24 # Use a colorized prompt. Hostname in green, current directory in blue.
25 set cmd:prompt "lftp \[\e[01;32m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] % "
28 # Store passwords in the bookmarks file.
29 set bmk:save-passwords yes
31 # No retries after a failed connection, prevents (long) delays e.g. for
35 # If SSL is used make sure the data connection is encrypted as well. This
36 # should be the default behavior!.
37 set ftp:ssl-protect-data yes
38 set ftp:ssl-protect-fxp yes
39 # Same for control connections (default).
40 set ftp:ssl-protect-list yes
41 # Make sure SSL is not dropped after a successful login (default).
42 set ftp:ssl-use-ccc no
43 # And verify the certificate and hostname, otherwise encryption doesn't matter
45 set ssl:check-hostname yes
46 set ssl:verify-certificate yes
51 # Create "sync" command which syncs local directories with remote ones and
52 # transfers all missing/outdated files. Local files which don't exist anymore
53 # are removed on the server.
54 alias sync mirror --verbose --reverse --delete --dereference
56 # Create commands to go up directories.
59 alias .... cd ../../..