X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=rc;h=e04b9b8330231b543eb1a00f69ee11e95864fbc3;hb=5c65ce08d0342bf5e8311c181975697b7854505e;hp=a0063f3e2dd86c80aab0b4886937bba8deabed53;hpb=0aea05d4f707ba6d6509554d9f04a5d9bd052498;p=config%2Fdotfiles.git diff --git a/rc b/rc index a0063f3..e04b9b8 100644 --- a/rc +++ b/rc @@ -1,18 +1,26 @@ # lftp configuration file. -# Display all files (even hidden ones) with 'ls'. +# SETTINGS + +# Display all files (including hidden ones) with `ls`. set ftp:list-options -a # Store passwords in the bookmarks file. set bmk:save-passwords yes -# Create new "command" sync which will sync local directories with remote ones -# and transfer all missing/outdated files. Local files which don't exist -# anymore are removed on the server. +# 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\] % " + + +# ALIASES + +# Create "sync" command which syncs local directories with remote ones and +# transfers all missing/outdated files. Local files which don't exist anymore +# are removed on the server. alias sync mirror --verbose --reverse --delete --dereference --exclude .DS_Store -# Create new ".." command to go one directory up the tree. +# Create "..", "..." and "...." commands to go up directory in the tree. alias .. cd .. -# Create new "..." command to go two directories up the tree. alias ... cd ../.. +alias .... cd ../../..