summaryrefslogtreecommitdiff
path: root/etc/ls-colors
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-25 20:18:03 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-25 20:18:03 +0100
commit9689ad47e8c7d068aa5b711137b9b42445e5a6ad (patch)
treef0318db24d6f1925cc0427721510d4f5c5390e82 /etc/ls-colors
parent8aa614c8432ff3061312b34df1729ab1cc3e3c8b (diff)
Use mime parameters for suffix aliases and ls-colors
Diffstat (limited to 'etc/ls-colors')
-rw-r--r--etc/ls-colors8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/ls-colors b/etc/ls-colors
new file mode 100644
index 0000000..3566aa6
--- /dev/null
+++ b/etc/ls-colors
@@ -0,0 +1,8 @@
+## vim:ft=zsh
+LS_COLORS="no=00:fi=00:di=01;37:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32"
+
+LS_COLORS+=${(j/:/):-"*."${^mime_archive}"=04;31"}
+LS_COLORS+=${(j/:/):-"*."${^mime_audio}"=04;36"}
+LS_COLORS+=${(j/:/):-"*."${^mime_document}"=04"}
+LS_COLORS+=${(j/:/):-"*."${^mime_image}"=04;33"}
+LS_COLORS+=${(j/:/):-"*."${^mime_video}"=04;32"}