diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-06-21 22:44:06 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-06-21 22:44:06 +0800 |
commit | 886eab400e2883b9424243b72af3002896781e02 (patch) | |
tree | f730ba706478a1e8fcafcefc8b7c1f5f4b4d57e2 /.lftp/rc | |
parent | b35be1d080b8abcbe989dc2687d61b4b2d450099 (diff) | |
download | dotfiles-886eab400e2883b9424243b72af3002896781e02.tar.bz2 |
Updated & Added configuration files.
Added:
* .calendar (BSD calendar)
* .config/openbox/
* .config/tint2/
* .rtorrent.rc
* .screenrc
* .tcsh/, .tcshrc, .tcshrc.local
Updated:
* .gitignore
* .lftp/rc
* .tmux.conf
Diffstat (limited to '.lftp/rc')
-rw-r--r-- | .lftp/rc | 123 |
1 files changed, 107 insertions, 16 deletions
@@ -1,21 +1,112 @@ -# ~/.lftp/rc -# ~/.lftprc -# -# lftp configurations -# -# Weitian LI <liweitianux@gmail.com> -# 2014/05/17 -# +## +## lftp config file +## ~/.lftp/rc +## ~/.lftprc +## +## LIweitiaNux <liweitianux@gmail.com> +## August 16, 2012 +## +## Ref: http://ihavanna.org/linux/225 +## + + +## debug +#debug 3 + +## character settings {{{ +set ftp:charset GBK +set sftp:charset UTF-8 +set file:charset UTF-8 +## charset }}} + +## alias {{{ +alias nocharset "set ftp:charset; set file:charset" +alias gbk "set ftp:charset GBK; set file:charset UTF-8" +alias utf8 "set ftp:charset UTF-8; set file:charset UTF-8" + +alias reconnect "close; cache flush; cd ." +alias passive "set ftp:passive-mode" +## alias }}} + +## settings {{{ +# history +set cmd:csh-history on + +# default protocol selection +set default-protocol/ftp.* ftp +set default-protocol/www.* http +set default-protocol/localhost file + +# passive mode +set ftp:passive-mode yes -### character set {{{ -set file:charset "utf-8" -set ftp:charset "gbk" -### charset }}} +# pget +set pget:default-n 5 -### ssl {{{ -# fix certificate verification not trusted +# makes lftp faster but doesn't work with some sites/routers +# set ftp:sync-mode off + +# ssl +set ftp:ssl-protect-data yes +#set ftp:ssl-allow no +#set ftp:ssl-force no +# for sites use ssl, but NOT purchase a proper SSL +# NOTE: Middle-man attacks +# Ref: http://rajaseelan.com/2011/12/18/lftp-fatal-error-certificate-verification-not-trusted/ set ssl:verify-certificate no -### ssl }}} + +## settings }}} + +## appearance {{{ +# make prompt look better +# colors (contributed by Matthew <mwormald@optusnet.com.au>) +set prompt "\[\e[0;33m\][\[\e[0;34m\]f\[\e[1m\]t\[\e[37m\]p\[\e[0;33m\]] \[\e[1;32m\]\u\[\e[0;33m\]\@\[\e[1;31m\]\h\[\e[0;33m\]:\[\e[1;34m\]\w\[\e[0;33m\] >\[\e[0m\] " +# Uncomment the following two lines to make switch cls and ls, making +# cls the default. +alias ls command cls +alias hostls command 'ls --color' + +# Terminal strings to set titlebars for terminals that don't +# properly specify tsl and fsl capabilities. +# 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]" +set cmd:set-term-status on +## appearance }}} + +## proxy {{{ +# 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 ftp://[user:pass@]your_ftp_proxy:port +# ...but squid still can be used to access ftp servers, using hftp protocol: +# set ftp:proxy http://your.squid.address:port +# ...if squid allows CONNECT to arbitrary ports, then you can use CONNECT +# instead of hftp: +# set ftp:use-hftp no + +# 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 +## proxy }}} -# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=lftp: # +# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=lftp: # |