]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - misc/lftp/rc
psql: add vim modeline
[config/dotfiles.git] / misc / lftp / rc
1 # lftp configuration file.
2
3 # Copyright (C) 2007-2013  Simon Ruderich
4 #
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.
9 #
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.
14 #
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/>.
17
18
19 # SETTINGS
20
21 # Display all files (including hidden ones) with `ls`.
22 set ftp:list-options -a
23
24 # Enable colors in interactive mode. Used by e.g. directory listings (which
25 # use $LS_COLORS).
26 set color:use-color auto
27
28 # Use a colorized prompt. Hostname in bold green, current directory in bold
29 # blue.
30 set cmd:prompt "lftp \[\e[01;32m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] % "
31
32
33 # Store passwords in the bookmarks file.
34 set bmk:save-passwords yes
35
36 # Don't store current directory of each server in ~/.lftp/cwd_history.
37 set cmd:save-cwd-history no
38 # Don't store transfer logs in ~/.lftp/transfer_log.
39 set xfer:log no
40
41
42 # No retries after a failed connection, prevents (long) delays e.g. for
43 # automated jobs.
44 set net:max-retries 1
45
46 # If SSL is used make sure the data connection is encrypted as well. This
47 # should be the default behavior!.
48 set ftp:ssl-protect-data yes
49 set ftp:ssl-protect-fxp yes
50 # Same for control connections (default).
51 set ftp:ssl-protect-list yes
52 # Make sure SSL is not dropped after a successful login (default).
53 set ftp:ssl-use-ccc no
54 # And verify the certificate and hostname, otherwise encryption doesn't matter
55 # (default).
56 set ssl:check-hostname yes
57 set ssl:verify-certificate yes
58
59
60 # ALIASES
61
62 # Create "sync" command which syncs local directories with remote ones and
63 # transfers all missing/outdated files. Local files which don't exist anymore
64 # are removed on the server.
65 alias sync mirror --verbose --reverse --delete --dereference
66
67 # Create commands to go up directories.
68 alias .. cd ..
69 alias ... cd ../..
70 alias .... cd ../../..