]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Merge lftp configuration repository.
authorSimon Ruderich <simon@ruderich.org>
Sun, 24 Mar 2013 14:36:09 +0000 (15:36 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 24 Mar 2013 14:36:09 +0000 (15:36 +0100)
Conflicts:
.gitignore
setup.sh

.gitignore
lftp/rc [new file with mode: 0644]
setup.sh

index e3dd230e16be5a92a974e66e245cb2dc22350151..42531eb38dd80ea11829a0144a7c6fe0a5ad2e83 100644 (file)
@@ -1 +1,4 @@
+/lftp/cwd_history
+/lftp/rl_history
+/lftp/transfer_log
 /maxima/maxout.gnuplot_pipes
diff --git a/lftp/rc b/lftp/rc
new file mode 100644 (file)
index 0000000..3717a06
--- /dev/null
+++ b/lftp/rc
@@ -0,0 +1,41 @@
+# lftp configuration file.
+
+# Copyright (C) 2007-2013  Simon Ruderich
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file.  If not, see <http://www.gnu.org/licenses/>.
+
+
+# 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
+
+# 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 "..", "..." and "...." commands to go up directory in the tree.
+alias .. cd ..
+alias ... cd ../..
+alias .... cd ../../..
index 38cac8efdf44b9df88a1613049e335b596759336..f64aa37c572a3a1b4217ae1917fea03aafbdf469 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -2,7 +2,7 @@
 
 # Setup script for miscellaneous configuration files.
 
-# Copyright (C) 2011-2012  Simon Ruderich
+# Copyright (C) 2009-2012  Simon Ruderich
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -27,6 +27,11 @@ if installed gdb; then
     link gdbinit ~/.gdbinit
 fi
 
+# Powerful FTP client.
+if installed lftp; then
+    link lftp ~/.lftp
+fi
+
 # Maxima, a symbolic algebra program.
 if installed maxima; then
     link maxima ~/.maxima