-
Notifications
You must be signed in to change notification settings - Fork 2
/
lftprc
102 lines (86 loc) · 2.26 KB
/
lftprc
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# ssl
set ftp:ssl-force true
set ftp:ssl-protect-data true
set ftp:ssl-protect-fxp true
set ftp:ssl-protect-list true
set ftps:initial-prot "P"
set ssl:verify-certificate false
# disable epsv
set ftp:prefer-epsv false
# use stat when listing directories
set ftp:use-stat-for-list true
# enable fxp
set ftp:use-fxp true
# never attempt to fix pasv address
set ftp:fix-pasv-address false
# mdtm is slow for large directories
set ftp:use-mdtm false
# never use mlsd
set ftp:use-mlsd false
# do not bind data socket
set ftp:bind-data-socket false
# misc
set cmd:remote-completion true
set bmk:save-passwords true
set color:use-color auto
# nice prompt
set prompt "\[\e[1;32m\]\u@\S\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]$ "
# timeout and retries
set net:timeout 120
set net:max-retries 5
# aliases
alias .. "cd .."
# directory listing
alias ll "cls \
--long \
--human-readable \
--sort=date"
alias l "set color:use-color true && cls --human-readable --sort=date --user --group --date --links --size | fzf --ansi --reverse && set color:use-color auto"
alias lgrep "ll | grep -i"
# queuing
alias q "queue"
alias s "slot"
# transferring
alias m "mirror \
--continue \
--ignore-time \
--skip-noaccess \
--no-empty-dirs \
--no-perms \
--no-umask \
--dereference \
--exclude-glob='.*' \
--exclude-glob='*-offline' \
--exclude-glob='*-OFFLINE' \
--exclude-glob='*.conflict' \
--exclude-glob='*.bad' \
--exclude-glob='*.html' \
--exclude-glob='*.message' \
--exclude-glob='*.url' \
--exclude-glob='*.missing' \
--exclude-glob='*-missing' \
--exclude-glob='*-MISSING' \
--exclude-glob='*approved*' \
--exclude-glob='*(?).*' \
--exclude-glob='*(??).*' \
--exclude-glob='*(???).*' \
--exclude-glob='*(movieinfo)*' \
--exclude-glob='*TvMaze*' \
--exclude='imdb.nfo' \
--exclude='tvmaze.nfo' \
--exclude='.*COMPLETE .*' \
--exclude='.*complete .*'"
alias g "m \
--exclude='Sample' \
--exclude='SAMPLE' \
--exclude='sample' \
--exclude='Proof' \
--exclude-glob='*-sample.mkv' \
--exclude-glob='*.sample.mkv' \
--exclude-glob='*.jpg'"
# manual transfers
alias x "g --only-missing"
alias x2 "x --parallel=2"
# used by lftpq
alias a "g --verbose"
alias a2 "a --parallel=2"