Browse Source

add zsh complist colors

Emmanuel Bouthenot 16 years ago
parent
commit
ee72329849

+ 4 - 0
.mailfilter

@@ -8,6 +8,10 @@ MAILDROP_OLD_REGEXP=1
 
 logfile "/home/manu/Admin/logs/maildrop/maildrop.log"
 
+## Debian backports
+if (/^List-Id:.*<backports-users\.lists\.backports\.org>$/)
+        to $MAILDIR/.my.ml.debian.backports
+
 ### Debian Lists
 if (/^List-Id: <debian-!.*!\.lists\.debian\.org>.*$/)
 {

+ 3 - 2
.muttng/conf/headers

@@ -56,9 +56,10 @@ unignore X-Originating-Email:
 unignore X-Bogosity:
 unignore X-Operating-System:
 unignore X-Apparently-From:
-unignore X-Virus-Scanned
+unignore X-Virus-Scanned:
+unignore Message-ID:
 
 # Now order the visable header lines
-hdr_order From: Resent-From: Subject: To: Cc: Bcc: Return-Path: Reply-To: Mail-Followup-To: Followup-To: Date: Resent-Date: Organization: User-Agent: X-Mailer: X-Newsreader: Newsgroups: Summary: Keywords: Mail-Copies-To: Sender: X-Sent: X-Mailman-Version: Posted-To: Mail-Copies-To: Apparently-To: Gnus-Warning: Resent-From: X-Accept-Language: gpg-key-ID: X-GPG-Fingerprint: fingerprint: X-Spam-Status: X-Junked-Because: X-SpamProbe: X-Virus-hagbard: X-Originating-IP: X-Originating-Email:
+hdr_order From: Resent-From: Subject: To: Cc: Bcc: Return-Path: Reply-To: Mail-Followup-To: Followup-To: Date: Resent-Date: Organization: User-Agent: X-Mailer: X-Newsreader: Newsgroups: Summary: Keywords: Mail-Copies-To: Sender: X-Sent: X-Mailman-Version: Posted-To: Mail-Copies-To: Apparently-To: Gnus-Warning: Resent-From: X-Accept-Language: gpg-key-ID: X-GPG-Fingerprint: fingerprint: X-Spam-Status: X-Junked-Because: X-SpamProbe: X-Virus-hagbard: X-Originating-IP: X-Originating-Email: Message-ID:
 
 

+ 3 - 0
.muttng/conf/mailboxes

@@ -24,6 +24,7 @@ mailboxes = '+.my.misc'
 mailboxes = '+.my.soft.weechat.ml.cvs'
 mailboxes = '+.my.soft.weechat.ml.dev'
 
+mailboxes = '+.my.soft.debian.bugs'
 mailboxes = '+.my.soft.debian.misc'
 mailboxes = '+.my.soft.debian.asso'
 mailboxes = '+.my.soft.debian.bts'
@@ -60,6 +61,7 @@ mailboxes = '+.my.ml.abul.hourtin'
 mailboxes = '+.my.ml.debian.france.asso'
 mailboxes = '+.my.ml.debian.france.sl'
 
+mailboxes = '+.my.ml.debian.bugs-rc'
 mailboxes = '+.my.ml.debian.announce'
 mailboxes = '+.my.ml.debian.project'
 mailboxes = '+.my.ml.debian.vote'
@@ -74,6 +76,7 @@ mailboxes = '+.my.ml.debian.mentors'
 mailboxes = '+.my.ml.debian.devel-changes'
 mailboxes = '+.my.ml.debian.user-french'
 mailboxes = '+.my.ml.debian.news-french'
+mailboxes = '+.my.ml.debian.backports'
 
 mailboxes = '+.my.ml.debian.hurd'
 mailboxes = '+.my.ml.hurd.hurdfr'

+ 1 - 0
.muttng/conf/subscribes

@@ -11,6 +11,7 @@
 
 subscribe weechat-(dev|cvs)
 subscribe debian-.*@lists\.debian\.org
+subscribe backports.*@lists\.backports\.org
 subscribe (ca|asso|abonnes|inscrits|tech|debutants|blahblah|annonces|party|devel|web|hourtin)@abul\.org
 subscribe linuxaction
 subscribe hurdfr@hurdfr\.org

+ 7 - 0
.zsh.d/config.d/shell.zsh

@@ -0,0 +1,7 @@
+
+# shell tweaking
+
+if [ -n "$LS_COLORS" ]; then
+    zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
+fi
+

+ 0 - 89
.zsh.d/config/dircolors

@@ -1,89 +0,0 @@
-# Below, there should be one TERM entry for each termtype that is colorizable
-TERM linux
-TERM console
-TERM con132x25
-TERM con132x30
-TERM con132x43
-TERM con132x60
-TERM con80x25
-TERM con80x28
-TERM con80x30
-TERM con80x43
-TERM con80x50
-TERM con80x60
-TERM xterm
-TERM vt100
-TERM xterm-xfree86
-
-# Below are the color init strings for the basic file types. A color init
-# string consists of one or more of the following numeric codes:
-# Attribute codes:
-# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
-# Text color codes:
-# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
-# Background color codes:
-# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
-NORMAL 00 # global default, although everything should be something.
-FILE 00 # normal file
-DIR 01;34 # directory
-LINK 01;36 # symbolic link
-FIFO 40;33 # pipe
-SOCK 01;33 # socket
-BLK 40;33;01 # block device driver
-CHR 40;33;01 # character device driver
-ORPHAN 40;31;01 # symlink to nonexistent file
-
-# This is for files with execute permission:
-EXEC 01;32
-
-# List any file extensions like '.gz' or '.tar' that you would like ls
-# to colorize below. Put the extension, a space, and the color init string.
-# (and any comments you want to add after a '#')
-
-
-*~     07;31 # old files (reverse red)
-*.bak  07;31
-*.old  07;31
-.mtxt  07;31
-.ndx   07;31
-.cmd   01;32  # executables (bright green)
-.exe   01;32
-.com   01;32
-.btm   01;32
-.bat   01;32
-.c     00;36  # source code (Cyan)
-.h     00;36
-.pl    00;36
-.php   00;36
-.pm    00;36
-.cgi   00;36
-.java  00;36
-.html  00;36
-.htm   00;36
-.o     00;33  # byte code (brown)
-.class 00;33
-.elc   00;33
-.tar   01;31  # archives or compressed (bright red)
-.tgz   01;31
-.tbz2  01;31
-.arj   01;31
-.taz   01;31
-.lzh   01;31
-.zip   01;31
-.z     01;31
-.Z     01;31
-.gz    01;31
-.bz2   01;31
-.rpm   01;31
-.deb   01;31
-.jpg   00;35  # image formats (bright magenta)
-.jpeg  01;35
-.JPG   01;35
-.gif   01;35
-.GIF   01;35
-.bmp   01;35
-.BMP   01;35
-.xbm   01;35
-.ppm   01;35
-.xpm   01;35
-.tif   01;35

+ 2 - 5
.zsh.d/os.d/FreeBSD.zsh

@@ -7,11 +7,8 @@
 # GNU ls(1) from FreeBSD ports is called gnuls(1).
 if [ -x "$(whence gnuls)" ]; then
     if [ "$TERM" != "dumb" ]; then
-	if [ -r "$DOTZSHDIR/config/dircolors" ]; then
-	    eval $(dircolors -b $DOTZSHDIR/config/dircolors)
-	else
-	    eval $(dircolors -b)
-	fi
+	export eval $(dircolors -b)
+	
 	alias ls="gnuls -h --color=auto"
 	alias l="gnuls -lh --color=auto"
     else

+ 2 - 5
.zsh.d/os.d/Linux.zsh

@@ -4,11 +4,8 @@
 [ -r /etc/debian_version ] && source $DOTZSHDIR/os.d/Debian.zsh
 
 if [ "$TERM" != "dumb" ]; then
-    if [ -r "$DOTZSHDIR/config/dircolors" ]; then
-	eval $(dircolors -b $DOTZSHDIR/config/dircolors)
-    else
-	eval $(dircolors -b)
-    fi
+    export eval $(dircolors -b)
+    
     alias ls="ls -h --color=auto"
     alias l="ls -lh --color=auto"
 else

+ 2 - 4
.zsh.d/os.d/OpenBSD.zsh

@@ -3,10 +3,8 @@
 
 # GNU ls(1) from OpenBSD ports is named gls(1)/gdircolors(1).
 if [ -x "$(whence gdircolors)" ]; then
-    if [ -r "$DOTZSHDIR/config/dircolors" ]; then
-	eval $(gdircolors -b $DOTZSHDIR/config/dircolors)
-    else
-	eval $(gdircolors -b)
+    export eval $(dircolors -b)
+    
     fi
     if [ "$TERM" != "dumb" ]; then
 	alias ls="gls -h --color=auto"

+ 2 - 5
.zsh.d/os.d/SunOS.zsh

@@ -21,11 +21,8 @@ export PATH MANPATH
 
 # GNU ls(1) from SunOS ports is called gls(1)/gdircolors(1).
 if [ -x "$(whence gdircolors)" ]; then
-    if [ -r "$DOTZSHDIR/config/dircolors" ]; then
-	eval $(gdircolors -b $DOTZSHDIR/config/dircolors)
-    else
-	eval $(gdircolors -b)
-    fi
+    export eval $(dircolors -b)
+    
     if [ "$TERM" != "dumb" ]; then
 	alias ls="gls -h --color=auto"
 	alias l="gls -lh --color=auto"

+ 4 - 4
.zsh.d/zshrc

@@ -42,15 +42,15 @@ compinit
 # override default umask
 umask 0022
 
+# per OS resource file
+local os=$(uname)
+[ -r "$DOTZSHDIR/os.d/${os}.zsh" ] && source "$DOTZSHDIR/os.d/${os}.zsh"
+
 # sourcing resource files
 for f in $DOTZSHDIR/config.d/*.zsh; do
     [ -r "$f" ] && source $f
 done
 
-# per OS resource file
-local os=$(uname)
-[ -r "$DOTZSHDIR/os.d/${os}.zsh" ] && source "$DOTZSHDIR/os.d/${os}.zsh"
-
 # using 'sudo zsh'
 if [ "$SUDO_USER" -a $UID = 0 ]; then
     # define root history path