X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lftp%2Frc;h=1d76629bfb25b4e97468bc177df5833dbdcdbdda;hb=c0ac5569ef943a2f5f828706d2d38de9f655e295;hp=0f9eb8eba635173947f74202c9600df18573ac36;hpb=e61074956d94b4bccfc937e73bf51db3122fbe29;p=config%2Fdotfiles.git diff --git a/lftp/rc b/lftp/rc index 0f9eb8e..1d76629 100644 --- a/lftp/rc +++ b/lftp/rc @@ -21,11 +21,16 @@ # Display all files (including hidden ones) with `ls`. set ftp:list-options -a +# Use a colorized prompt. Hostname in green, current directory in blue. +set cmd:prompt "lftp \[\e[01;32m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] % " + + # Store passwords in the bookmarks file. set bmk:save-passwords yes -# Use a colorized prompt. Hostname in green, current directory in blue. -set cmd:prompt "lftp \[\e[01;32m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] % " +# No retries after a failed connection, prevents (long) delays e.g. for +# automated jobs. +set net:max-retries 1 # ALIASES @@ -35,7 +40,7 @@ set cmd:prompt "lftp \[\e[01;32m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] % " # are removed on the server. alias sync mirror --verbose --reverse --delete --dereference -# Create "..", "..." and "...." commands to go up directory in the tree. +# Create commands to go up directories. alias .. cd .. alias ... cd ../.. alias .... cd ../../..