Share Pastebin
Guest
Public paste!

bAndie91

By: a guest | Oct 29th, 2009 | Syntax: Bash | Size: 0.46 KB | Hits: 230 | Expires: Never
Copy text to clipboard
  1. #!/bin/bash
  2.  
  3. eval $(echo "no:global default;fi:normal file;di:directory;ln:symbolic link;pi:named pipe;so:socket;do:door;bd:block device;cd:character device;or:orphan symlink;mi:missing file;su:set uid;sg:set gid;tw:sticky other writable;ow:other writable;st:sticky;ex:executable;"|sed -e 's/:/="/g; s/\;/"\n/g')
  4. {
  5.   IFS=:
  6.   for i in $LS_COLORS
  7.   do
  8.     echo -e "\e[${i#*=}m$( x=${i%=*}; [ "${!x}" ] && echo "${!x}" || echo "$x" )\e[m"
  9.   done
  10. } #| column