home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120521.etc.tar.gz / bradford.20120521.etc.tar / etc / lftp.conf < prev    next >
Text File  |  2006-04-23  |  3KB  |  90 lines

  1. ## some useful aliases
  2. alias dir ls
  3. alias less more
  4. alias zless zmore
  5. alias bzless bzmore
  6. alias reconnect "close; cache flush; cd ."
  7.  
  8. ## make prompt look better
  9. set prompt "lftp \S\? \u\@\h:\w> "
  10. ## some may prefer colors (contributed by DA <mwormald@optushome.com.au>)
  11. #set prompt "\[\e[1;30m\][\[\e[0;34m\]f\[\e[1m\]t\[\e[37m\]p\[\e[30m\]] \[\e[34m\]\u\[\e[0;34m\]\@\[\e[1m\]\h\[\e[1;30m\]:\[\e[1;34m\]\w\[\e[1;30m\]>\[\e[0m\] "
  12. ## Uncomment the following two lines to make switch cls and ls, making
  13. ## cls the default.
  14. #alias ls command cls
  15. #alias hostls command ls
  16.  
  17. ## default protocol selection
  18. #set default-protocol/ftp.*    ftp
  19. #set default-protocol/www.*    http
  20. #set default-protocol/localhost    file
  21.  
  22. ## this makes lftp faster but doesn't work with some sites/routers
  23. #set ftp:sync-mode off
  24.  
  25. ## synchronous mode for broken servers and/or routers
  26. set sync-mode/ftp.idsoftware.com on
  27. set sync-mode/ftp.microsoft.com on
  28. set sync-mode/sunsolve.sun.com on
  29. ## extended regex to match first server message for automatic sync-mode.
  30. set auto-sync-mode "icrosoft FTP Service|MadGoat"
  31.  
  32. ## if default ftp passive mode does not work, try this:
  33. # set ftp:passive-mode off
  34.  
  35. ## Set this to follow http redirections
  36. set xfer:max-redirections 10
  37.  
  38. ## Proxy can help to pass a firewall
  39. ## Environment variables ftp_proxy, http_proxy and no_proxy are used to
  40. ## initialize the below variables automatically. You can set them here too.
  41. ##
  42. ## ftp:proxy must communicate with client over ftp protocol, squid won't do.
  43. ## This can be e.g. TIS-FWTK or rftpd. User and password are optional.
  44. # set ftp:proxy ftp://[user:pass@]your_ftp_proxy:port
  45. ## ...but squid still can be used to access ftp servers, using hftp protocol:
  46. # set ftp:proxy http://your.squid.address:port
  47. ## ...if squid allows CONNECT to arbitrary ports, then you can use CONNECT
  48. ## instead of hftp:
  49. # set ftp:use-hftp no
  50. ##
  51. ## no proxy for host
  52. # set ftp:proxy/local_host ""
  53. ## or domain
  54. # set ftp:proxy/*.domain.com ...
  55. ##
  56. ## http:proxy must communicate with client over http protocol, e.g. squid.
  57. ## Default port is 3128.
  58. # set http:proxy your_http_proxy[:port]
  59. ## hftp:proxy must also be an http proxy. It is used for FTP over HTTP access.
  60. # set hftp:proxy your_http_proxy[:port]
  61. ##
  62. ## net:no-proxy disables proxy usage for list of domains.
  63. # set net:no-proxy .domain.com,.otherdom.net
  64.  
  65. ## If you don't have direct ftp access, this setting can be useful to select
  66. ## hftp instead of ftp automatically.
  67. # set ftp:proxy http://your.http.proxy:port
  68.  
  69. ## This can be used for automatic saving of configuration
  70. # set at-exit "set > ~/.lftp/settings"
  71. # source ~/.lftp/settings
  72.  
  73. ## and this is for remembring last site
  74. ## (combine with previous rule if you want)
  75. # set at-exit "bo a last"
  76. # open last
  77.  
  78. ## Terminal strings to set titlebars for terminals that don't
  79. ## properly specify tsl and fsl capabilities.
  80. ## Use cmd:set-term-status to enable this.
  81. set cmd:term-status/*screen* "\e_\T\e\\"
  82. set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
  83. set cmd:term-status/*rxvt* "\e[11;0]\e]2;\T\007\e[11]"
  84. # set cmd:set-term-status on
  85.  
  86. ## If you don't like advertising lftp or servers hate it, set this:
  87. # set ftp:anon-pass "mozilla@"
  88. # set ftp:client ""
  89. # set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"
  90.