]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - rc
rc: Use a colorized prompt.
[config/dotfiles.git] / rc
diff --git a/rc b/rc
index 9c55eea96c2fdb1d1d1ca11964af40cd449ae263..52e021a6ae37468bd15416ed0144a9a2b71dc3eb 100644 (file)
--- a/rc
+++ b/rc
@@ -1,13 +1,25 @@
 # 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 ".." and "..." commands to go up directory in the tree.
+alias .. cd ..
+alias ... cd ../..