]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - rc
setup.sh: Only link configuration files if lftp is installed.
[config/dotfiles.git] / rc
diff --git a/rc b/rc
index 40a044fddb6ffd3422d74de9be647e1c62c926f8..3717a064d717cc8f816c87ae3b49cd699f377ab4 100644 (file)
--- a/rc
+++ b/rc
@@ -1,5 +1,22 @@
 # 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
@@ -7,11 +24,18 @@ 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.
+# Create "..", "..." and "...." commands to go up directory in the tree.
 alias .. cd ..
 alias ... cd ../..
+alias .... cd ../../..