]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Thu, 24 Sep 2009 13:47:01 +0000 (22:47 +0900)
committerPHO <pho@cielonegro.org>
Thu, 24 Sep 2009 13:47:01 +0000 (22:47 +0900)
dot-files/_zshrc

index eaf76574fb788c92b3d7c704bc9e078b9b424d96..6543f982d4676a773eb83380c09e7f109d966ef8 100644 (file)
@@ -101,6 +101,11 @@ function print_directory_info() {
         # Darcs
         basename $absdir
 
+    elif [[ -r $absdir/CVS/Repository ]] then
+        # CVS
+        cat $absdir/CVS/Repository \
+            | sed -e 's!\([^/]*\).*!\1!'
+
     else
         # Unknown.
         if [[ $absdir = "/" ]] then