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

diff --git a/IGNORE b/IGNORE
index 49861720441f18937c24d0af004251abf29a11e4..852ff3d83f42224168da0a1e4862b62a6eff0c7b 100644 (file)
--- a/IGNORE
+++ b/IGNORE
@@ -20,6 +20,7 @@
 .aspell.*
 .btpd
 .cabal
+.cabal-upload
 .cddbslave
 .config
 .covers
@@ -29,6 +30,7 @@
 .dbus
 .dillo/cookiesrc
 .dmrc
+.dropbox
 .dvdcss
 .easytag
 .ecb-tip-of-day.el
@@ -52,6 +54,7 @@
 .forward
 .gconf*
 .gegl-*
+.gimmix*
 .gimp*
 .gitk
 .glimpse*
 .w3m/*arrived
 .w3m/*cookie
 .w3m/*sessions
+.w3m/.textarea
 .wine
 .xchat2*
 .xdvirc
index e2daa01a3bf4462f0d51739df6c9783f44504f90..72426b0329f373cf6a8661e0010f9e0a90e71f46 100644 (file)
 (display-time)
 
 ;; Setting for Frames ----------------------------------------------------------
+(when window-system
+  (set-default-font "Bitstream Vera Sans Mono 11")
+  (set-fontset-font (frame-parameter nil 'font)
+                    'japanese-jisx0208
+                    '("Hiragino Kaku Gothic Pro W3" . "unicode-bmp")))
 
 ;; Hooks for newline-and-indent ------------------------------------------------
 (mapcar (lambda (hook)
index d5fdcf850a7e95ae29ad3f515e6487a6559e4372..eaf76574fb788c92b3d7c704bc9e078b9b424d96 100644 (file)
@@ -75,7 +75,7 @@ function preexec() { # Hook
 }
 
 function chpwd() { # Hook
-    local dirinfo=$(print_directory_info)
+    local dirinfo=$(print_directory_info $(pwd))
 
     case $dirinfo in
         "")
@@ -86,40 +86,29 @@ function chpwd() { # Hook
 }
 
 function print_directory_info() {
-    local vcs_type=$(print_vcs_type $(pwd))
-
-    case $vcs_type in
-        git)
-            git branch --no-color 2>/dev/null \
-                | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/';;
-        hg)
-            hg branch 2>/dev/null;;
-        darcs-*)
-            # Delete `darcs-' at the beginning.
-            echo ${vcs_type#darcs-};;
-        *)
-            # Unknown
-            echo
-    esac
-}
-
-function print_vcs_type() {
     local absdir=$1
 
     if [[ -d $absdir/.git ]] then
-        echo git
+        # Git
+        git branch --no-color 2>/dev/null \
+            | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
+
     elif [[ -d $absdir/.hg ]] then
-        echo hg
+        # Hg
+        hg branch 2>/dev/null
+
     elif [[ -d $absdir/_darcs ]] then
-        echo darcs-$(basename $absdir)
+        # Darcs
+        basename $absdir
+
     else
-        # Nothing.
+        # Unknown.
         if [[ $absdir = "/" ]] then
             # This is the root directory so exit from the recursion.
             echo
         else
             # Recurse to the parent dir.
-            print_vcs_type $(dirname $absdir)
+            print_directory_info $(dirname $absdir)
         fi
     fi
 }