fixes :)
parent
98ac7d4796
commit
0a6d9dcb8b
|
|
@ -1,6 +1,6 @@
|
|||
*/enabled/*
|
||||
.DS_Store
|
||||
custom/*
|
||||
!custom/*
|
||||
!custom/example.bash
|
||||
.rvmrc
|
||||
aliases/custom.aliases.bash
|
||||
|
|
|
|||
|
|
@ -0,0 +1,148 @@
|
|||
#!/bin/bash
|
||||
|
||||
# maintains a jump-list of the directories you actually use
|
||||
#
|
||||
# INSTALL:
|
||||
# * put something like this in your .bashrc:
|
||||
# . /path/to/z.sh
|
||||
# * cd around for a while to build up the db
|
||||
# * PROFIT!!
|
||||
#
|
||||
# USE:
|
||||
# * z foo # goes to most frecent dir matching foo
|
||||
# * z foo bar # goes to most frecent dir matching foo and bar
|
||||
# * z -r foo # goes to highest ranked dir matching foo
|
||||
# * z -t foo # goes to most recently accessed dir matching foo
|
||||
# * z -l foo # list all dirs matching foo (by frecency)
|
||||
|
||||
z() {
|
||||
local datafile="$HOME/.z"
|
||||
if [ "$1" = "--add" ]; then
|
||||
# add
|
||||
shift
|
||||
# $HOME isn't worth matching
|
||||
[ "$*" = "$HOME" ] && return
|
||||
awk -v p="$*" -v t="$(date +%s)" -F"|" '
|
||||
BEGIN { rank[p] = 1; time[p] = t }
|
||||
$2 >= 1 {
|
||||
if( $1 == p ) {
|
||||
rank[$1] = $2 + 1
|
||||
time[$1] = t
|
||||
} else {
|
||||
rank[$1] = $2
|
||||
time[$1] = $3
|
||||
}
|
||||
count += $2
|
||||
}
|
||||
END {
|
||||
if( count > 1000 ) {
|
||||
for( i in rank ) print i "|" 0.9*rank[i] "|" time[i] # aging
|
||||
} else for( i in rank ) print i "|" rank[i] "|" time[i]
|
||||
}
|
||||
' "$datafile" 2>/dev/null > "$datafile.tmp"
|
||||
mv -f "$datafile.tmp" "$datafile"
|
||||
elif [ "$1" = "--complete" ]; then
|
||||
# tab completion
|
||||
awk -v q="$2" -F"|" '
|
||||
BEGIN {
|
||||
if( q == tolower(q) ) nocase = 1
|
||||
split(substr(q,3),fnd," ")
|
||||
}
|
||||
{
|
||||
if( system("test -d \"" $1 "\"") ) next
|
||||
if( nocase ) {
|
||||
for( i in fnd ) tolower($1) !~ tolower(fnd[i]) && $1 = ""
|
||||
if( $1 ) print $1
|
||||
} else {
|
||||
for( i in fnd ) $1 !~ fnd[i] && $1 = ""
|
||||
if( $1 ) print $1
|
||||
}
|
||||
}
|
||||
' "$datafile" 2>/dev/null
|
||||
else
|
||||
# list/go
|
||||
while [ "$1" ]; do case "$1" in
|
||||
-h) echo "z [-h][-l][-r][-t] args" >&2; return;;
|
||||
-l) local list=1;;
|
||||
-r) local typ="rank";;
|
||||
-t) local typ="recent";;
|
||||
--) while [ "$1" ]; do shift; local fnd="$fnd $1";done;;
|
||||
*) local fnd="$fnd $1";;
|
||||
esac; local last=$1; shift; done
|
||||
[ "$fnd" ] || local list=1
|
||||
# if we hit enter on a completion just go there
|
||||
[ -d "$last" ] && cd "$last" && return
|
||||
[ -f "$datafile" ] || return
|
||||
local cd="$(awk -v t="$(date +%s)" -v list="$list" -v typ="$typ" -v q="$fnd" -v tmpfl="$datafile.tmp" -F"|" '
|
||||
function frecent(rank, time) {
|
||||
dx = t-time
|
||||
if( dx < 3600 ) return rank*4
|
||||
if( dx < 86400 ) return rank*2
|
||||
if( dx < 604800 ) return rank/2
|
||||
return rank/4
|
||||
}
|
||||
function output(files, toopen, override) {
|
||||
if( list ) {
|
||||
if( typ == "recent" ) {
|
||||
cmd = "sort -nr >&2"
|
||||
} else cmd = "sort -n >&2"
|
||||
for( i in files ) if( files[i] ) printf "%-10s %s\n", files[i], i | cmd
|
||||
if( override ) printf "%-10s %s\n", "common:", override > "/dev/stderr"
|
||||
} else {
|
||||
if( override ) toopen = override
|
||||
print toopen
|
||||
}
|
||||
}
|
||||
function common(matches, fnd, nc) {
|
||||
for( i in matches ) {
|
||||
if( matches[i] && (!short || length(i) < length(short)) ) short = i
|
||||
}
|
||||
if( short == "/" ) return
|
||||
for( i in matches ) if( matches[i] && i !~ short ) x = 1
|
||||
if( x ) return
|
||||
if( nc ) {
|
||||
for( i in fnd ) if( tolower(short) !~ tolower(fnd[i]) ) x = 1
|
||||
} else for( i in fnd ) if( short !~ fnd[i] ) x = 1
|
||||
if( !x ) return short
|
||||
}
|
||||
BEGIN { split(q, a, " ") }
|
||||
{
|
||||
if( system("test -d \"" $1 "\"") ) next
|
||||
print $0 >> tmpfl
|
||||
if( typ == "rank" ) {
|
||||
f = $2
|
||||
} else if( typ == "recent" ) {
|
||||
f = t-$3
|
||||
} else f = frecent($2, $3)
|
||||
wcase[$1] = nocase[$1] = f
|
||||
for( i in a ) {
|
||||
if( $1 !~ a[i] ) delete wcase[$1]
|
||||
if( tolower($1) !~ tolower(a[i]) ) delete nocase[$1]
|
||||
}
|
||||
if( wcase[$1] > oldf ) {
|
||||
cx = $1
|
||||
oldf = wcase[$1]
|
||||
} else if( nocase[$1] > noldf ) {
|
||||
ncx = $1
|
||||
noldf = nocase[$1]
|
||||
}
|
||||
}
|
||||
END {
|
||||
if( cx ) {
|
||||
output(wcase, cx, common(wcase, a, 0))
|
||||
} else if( ncx ) output(nocase, ncx, common(nocase, a, 1))
|
||||
}
|
||||
' "$datafile")"
|
||||
if [ $? -gt 0 ]; then
|
||||
rm -f "$datafile.tmp"
|
||||
else
|
||||
mv -f "$datafile.tmp" "$datafile"
|
||||
[ "$cd" ] && cd "$cd"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
# tab completion
|
||||
complete -C 'z --complete "$COMP_LINE"' z
|
||||
# populate directory list. avoid clobbering other PROMPT_COMMANDs.
|
||||
echo $PROMPT_COMMAND | grep -q "z --add"
|
||||
[ $? -gt 0 ] && PROMPT_COMMAND='z --add "$(pwd -P)";'"$PROMPT_COMMAND"
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
#mano aslias
|
||||
if [ "$TERM" != "dumb" ]; then
|
||||
export LS_OPTIONS='--color=auto'
|
||||
fi
|
||||
|
||||
|
||||
alias ls='gls $LS_OPTIONS -hF'
|
||||
alias ll='gls $LS_OPTIONS -lhF'
|
||||
alias l='gls $LS_OPTIONS -lAhF'
|
||||
alias c='clear'
|
||||
alias edit="$EDITOR"
|
||||
alias pager="$PAGER"
|
||||
alias ..='cd ..' # Go up one directory
|
||||
alias ...='cd ../..' # Go up two directories
|
||||
alias ....='cd ../../..' # Go up two directories
|
||||
alias back='cd -' # Go back
|
||||
alias h='history'
|
||||
alias md='mkdir -p'
|
||||
alias rd='rmdir'
|
||||
|
||||
|
||||
|
||||
function sshcopyid {
|
||||
KEY="$HOME/.ssh/id_rsa.pub"
|
||||
if [ ! -f $KEY ];then
|
||||
echo "private key not found at $KEY"
|
||||
echo '* please create it with "ssh-keygen -t dsa"'
|
||||
echo "* to login to the remote host without a password, don't give the key you create with ssh-keygen a password"
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -z $1 ];then
|
||||
echo "Please specify user@host.tld as the first switch to this script"
|
||||
return
|
||||
fi
|
||||
|
||||
echo "Putting your public key on $1... "
|
||||
cat $KEY | ssh -q $1 "mkdir ~/.ssh 2>/dev/null; chmod 700 ~/.ssh; cat - >> ~/.ssh/authorized_keys; chmod 644 ~/.ssh/authorized_keys"
|
||||
echo "done!"
|
||||
}
|
||||
|
||||
function ql {
|
||||
(( $# > 0 )) && qlmanage -p "$@" &> /dev/null
|
||||
}
|
||||
|
||||
# Delete .DS_Store and __MACOSX directories.
|
||||
function rm-osx-cruft {
|
||||
find "${@:-$PWD}" \( \
|
||||
-type f -name '.DS_Store' -o \
|
||||
-type d -name '__MACOSX' \
|
||||
\) -print0 | xargs -0 rm -rf
|
||||
}
|
||||
|
|
@ -0,0 +1,258 @@
|
|||
|
||||
# Dark 256 color solarized theme for the color GNU ls utility.
|
||||
# Used and tested with dircolors (GNU coreutils) 8.5
|
||||
#
|
||||
# @author {@link http://sebastian.tramp.name Sebastian Tramp}
|
||||
# @license http://sam.zoy.org/wtfpl/ Do What The Fuck You Want To Public License (WTFPL)
|
||||
#
|
||||
# More Information at
|
||||
# https://github.com/seebi/dircolors-solarized
|
||||
|
||||
# Term Section
|
||||
TERM Eterm
|
||||
TERM ansi
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode256
|
||||
TERM rxvt-unicode-256color
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen-w
|
||||
TERM screen.linux
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
|
||||
## Documentation
|
||||
#
|
||||
# standard colors
|
||||
#
|
||||
# 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
|
||||
#
|
||||
#
|
||||
# 256 color support
|
||||
# see here: http://www.mail-archive.com/bug-coreutils@gnu.org/msg11030.html)
|
||||
#
|
||||
# Text 256 color coding:
|
||||
# 38;5;COLOR_NUMBER
|
||||
# Background 256 color coding:
|
||||
# 48;5;COLOR_NUMBER
|
||||
|
||||
## Special files
|
||||
|
||||
NORMAL 00;38;5;244 # no color code at all
|
||||
#FILE 00 # regular file: use no color at all
|
||||
RESET 0 # reset to "normal" color
|
||||
DIR 00;38;5;33 # directory 01;34
|
||||
LINK 01;38;5;37 # symbolic link. (If you set this to 'target' instead of a
|
||||
# numerical value, the color is as for the file pointed to.)
|
||||
MULTIHARDLINK 00 # regular file with more than one link
|
||||
FIFO 48;5;230;38;5;136;01 # pipe
|
||||
SOCK 48;5;230;38;5;136;01 # socket
|
||||
DOOR 48;5;230;38;5;136;01 # door
|
||||
BLK 48;5;230;38;5;244;01 # block device driver
|
||||
CHR 48;5;230;38;5;244;01 # character device driver
|
||||
ORPHAN 48;5;235;38;5;160 # symlink to nonexistent file, or non-stat'able file
|
||||
SETUID 48;5;160;38;5;230 # file that is setuid (u+s)
|
||||
SETGID 48;5;136;38;5;230 # file that is setgid (g+s)
|
||||
CAPABILITY 30;41 # file with capability
|
||||
STICKY_OTHER_WRITABLE 48;5;64;38;5;230 # dir that is sticky and other-writable (+t,o+w)
|
||||
OTHER_WRITABLE 48;5;235;38;5;33 # dir that is other-writable (o+w) and not sticky
|
||||
STICKY 48;5;33;38;5;230 # dir with the sticky bit set (+t) and not other-writable
|
||||
# This is for files with execute permission:
|
||||
EXEC 01;38;5;64
|
||||
|
||||
## Archives or compressed (violet + bold for compression)
|
||||
.tar 00;38;5;61
|
||||
.tgz 01;38;5;61
|
||||
.arj 01;38;5;61
|
||||
.taz 01;38;5;61
|
||||
.lzh 01;38;5;61
|
||||
.lzma 01;38;5;61
|
||||
.tlz 01;38;5;61
|
||||
.txz 01;38;5;61
|
||||
.zip 01;38;5;61
|
||||
.z 01;38;5;61
|
||||
.Z 01;38;5;61
|
||||
.dz 01;38;5;61
|
||||
.gz 01;38;5;61
|
||||
.lz 01;38;5;61
|
||||
.xz 01;38;5;61
|
||||
.bz2 01;38;5;61
|
||||
.bz 01;38;5;61
|
||||
.tbz 01;38;5;61
|
||||
.tbz2 01;38;5;61
|
||||
.tz 01;38;5;61
|
||||
.deb 01;38;5;61
|
||||
.rpm 01;38;5;61
|
||||
.jar 01;38;5;61
|
||||
.rar 01;38;5;61
|
||||
.ace 01;38;5;61
|
||||
.zoo 01;38;5;61
|
||||
.cpio 01;38;5;61
|
||||
.7z 01;38;5;61
|
||||
.rz 01;38;5;61
|
||||
.apk 01;38;5;61
|
||||
|
||||
# Image formats (yellow)
|
||||
.jpg 00;38;5;136
|
||||
.JPG 00;38;5;136 #stupid but needed
|
||||
.jpeg 00;38;5;136
|
||||
.gif 00;38;5;136
|
||||
.bmp 00;38;5;136
|
||||
.pbm 00;38;5;136
|
||||
.pgm 00;38;5;136
|
||||
.ppm 00;38;5;136
|
||||
.tga 00;38;5;136
|
||||
.xbm 00;38;5;136
|
||||
.xpm 00;38;5;136
|
||||
.tif 00;38;5;136
|
||||
.tiff 00;38;5;136
|
||||
.png 00;38;5;136
|
||||
.svg 00;38;5;136
|
||||
.svgz 00;38;5;136
|
||||
.mng 00;38;5;136
|
||||
.pcx 00;38;5;136
|
||||
.dl 00;38;5;136
|
||||
.xcf 00;38;5;136
|
||||
.xwd 00;38;5;136
|
||||
.yuv 00;38;5;136
|
||||
.cgm 00;38;5;136
|
||||
.emf 00;38;5;136
|
||||
.eps 00;38;5;136
|
||||
.CR2 00;38;5;136
|
||||
.ico 00;38;5;136
|
||||
|
||||
# Files of special interest (base1 + bold)
|
||||
.tex 01;38;5;245
|
||||
.rdf 01;38;5;245
|
||||
.owl 01;38;5;245
|
||||
.n3 01;38;5;245
|
||||
.ttl 01;38;5;245
|
||||
.nt 01;38;5;245
|
||||
.torrent 01;38;5;245
|
||||
*Makefile 01;38;5;245
|
||||
*Rakefile 01;38;5;245
|
||||
*build.xml 01;38;5;245
|
||||
*rc 01;38;5;245
|
||||
*1 01;38;5;245
|
||||
.nfo 01;38;5;245
|
||||
*README 01;38;5;245
|
||||
*README.txt 01;38;5;245
|
||||
*readme.txt 01;38;5;245
|
||||
*README.md 01;38;5;245
|
||||
*README.markdown 01;38;5;245
|
||||
*ini 01;38;5;245
|
||||
*yml 01;38;5;245
|
||||
*cfg 01;38;5;245
|
||||
*conf 01;38;5;245
|
||||
|
||||
# "unimportant" files as logs and backups (base01)
|
||||
.log 00;38;5;240
|
||||
.bak 00;38;5;240
|
||||
.aux 00;38;5;240
|
||||
.bbl 00;38;5;240
|
||||
.blg 00;38;5;240
|
||||
*~ 00;38;5;240
|
||||
*# 00;38;5;240
|
||||
.part 00;38;5;240
|
||||
.incomplete 00;38;5;240
|
||||
.swp 00;38;5;240
|
||||
.tmp 00;38;5;240
|
||||
.temp 00;38;5;240
|
||||
.o 00;38;5;240
|
||||
.pyc 00;38;5;240
|
||||
.class 00;38;5;240
|
||||
.cache 00;38;5;240
|
||||
|
||||
# Audio formats (orange)
|
||||
.aac 00;38;5;166
|
||||
.au 00;38;5;166
|
||||
.flac 00;38;5;166
|
||||
.mid 00;38;5;166
|
||||
.midi 00;38;5;166
|
||||
.mka 00;38;5;166
|
||||
.mp3 00;38;5;166
|
||||
.mpc 00;38;5;166
|
||||
.ogg 00;38;5;166
|
||||
.ra 00;38;5;166
|
||||
.wav 00;38;5;166
|
||||
.m4a 00;38;5;166
|
||||
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
||||
.axa 00;38;5;166
|
||||
.oga 00;38;5;166
|
||||
.spx 00;38;5;166
|
||||
.xspf 00;38;5;166
|
||||
|
||||
# Video formats (as audio + bold)
|
||||
.mov 01;38;5;166
|
||||
.mpg 01;38;5;166
|
||||
.mpeg 01;38;5;166
|
||||
.m2v 01;38;5;166
|
||||
.mkv 01;38;5;166
|
||||
.ogm 01;38;5;166
|
||||
.mp4 01;38;5;166
|
||||
.m4v 01;38;5;166
|
||||
.mp4v 01;38;5;166
|
||||
.vob 01;38;5;166
|
||||
.qt 01;38;5;166
|
||||
.nuv 01;38;5;166
|
||||
.wmv 01;38;5;166
|
||||
.asf 01;38;5;166
|
||||
.rm 01;38;5;166
|
||||
.rmvb 01;38;5;166
|
||||
.flc 01;38;5;166
|
||||
.avi 01;38;5;166
|
||||
.fli 01;38;5;166
|
||||
.flv 01;38;5;166
|
||||
.gl 01;38;5;166
|
||||
.m2ts 01;38;5;166
|
||||
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
||||
.axv 01;38;5;166
|
||||
.anx 01;38;5;166
|
||||
.ogv 01;38;5;166
|
||||
.ogx 01;38;5;166
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,424 @@
|
|||
# Exact Solarized Dark color theme for the color GNU ls utility.
|
||||
# Designed for dircolors (GNU coreutils) 5.97
|
||||
#
|
||||
# This simple theme was simultaneously designed for these terminal color schemes:
|
||||
# - Solarized dark (best)
|
||||
# - Solarized light
|
||||
# - default dark
|
||||
# - default light
|
||||
# with a slight optimization for Solarized Dark.
|
||||
#
|
||||
# How the colors were selected:
|
||||
# - Terminal emulators often have an option typically enabled by default that makes
|
||||
# bold a different color. It is important to leave this option enabled so that
|
||||
# you can access the entire 16-color Solarized palette, and not just 8 colors.
|
||||
# - We favor universality over a greater number of colors. So we limit the number
|
||||
# of colors so that this theme will work out of the box in all terminals,
|
||||
# Solarized or not, dark or light.
|
||||
# - We choose to have the following category of files:
|
||||
# NORMAL & FILE, DIR, LINK, EXEC and
|
||||
# editable text including source, unimportant text, binary docs & multimedia source
|
||||
# files, viewable multimedia, archived/compressed, and unimportant non-text
|
||||
# - For uniqueness, we stay away from the Solarized foreground colors are -- either
|
||||
# base00 (brightyellow) or base0 (brighblue). However, they can be used if
|
||||
# you know what the bg/fg colors of your terminal are, in order to optimize the display.
|
||||
# - 3 different options are provided: universal, solarized dark, and solarized light.
|
||||
# The only difference between the universal scheme and one that's optimized for
|
||||
# dark/light is the color of "unimportant" files, which should blend more with the
|
||||
# background
|
||||
# - We note that blue is the hardest color to see on dark bg and yellow is the hardest
|
||||
# color to see on light bg (with blue being particularly bad). So we choose yellow
|
||||
# for multimedia files which are usually accessed in a GUI folder browser anyway.
|
||||
# And blue is kept for custom use of this scheme's user.
|
||||
# - See table below to see the assignments.
|
||||
|
||||
|
||||
# Insatllation instructions:
|
||||
# This file goes in the /etc directory, and must be world readable.
|
||||
# You can copy this file to .dir_colors in your $HOME directory to override
|
||||
# the system defaults.
|
||||
|
||||
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
|
||||
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
|
||||
# off.
|
||||
COLOR tty
|
||||
|
||||
# Below, there should be one TERM entry for each termtype that is colorizable
|
||||
TERM ansi
|
||||
TERM color_xterm
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM Eterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM nxterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen.linux
|
||||
TERM screen-w
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
|
||||
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
|
||||
EIGHTBIT 1
|
||||
|
||||
#############################################################################
|
||||
# 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
|
||||
#
|
||||
# NOTES:
|
||||
# - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html
|
||||
# - Color combinations
|
||||
# ANSI Color code Solarized Notes Universal SolDark SolLight
|
||||
# ~~~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~ ~~~~~~~~~ ~~~~~~~ ~~~~~~~~
|
||||
# 00 none NORMAL, FILE <SAME> <SAME>
|
||||
# 30 black base02
|
||||
# 01;30 bright black base03 bg of SolDark
|
||||
# 31 red red docs & mm src <SAME> <SAME>
|
||||
# 01;31 bright red orange EXEC <SAME> <SAME>
|
||||
# 32 green green editable text <SAME> <SAME>
|
||||
# 01;32 bright green base01 unimportant text <SAME>
|
||||
# 33 yellow yellow unclear in light bg multimedia <SAME> <SAME>
|
||||
# 01;33 bright yellow base00 fg of SolLight unimportant non-text
|
||||
# 34 blue blue unclear in dark bg user customized <SAME> <SAME>
|
||||
# 01;34 bright blue base0 fg in SolDark unimportant text
|
||||
# 35 magenta magenta LINK <SAME> <SAME>
|
||||
# 01;35 bright magenta violet archive/compressed <SAME> <SAME>
|
||||
# 36 cyan cyan DIR <SAME> <SAME>
|
||||
# 01;36 bright cyan base1 unimportant non-text <SAME>
|
||||
# 37 white base2
|
||||
# 01;37 bright white base3 bg in SolLight
|
||||
# 05;37;41 unclear in Putty dark
|
||||
|
||||
|
||||
### By file type
|
||||
|
||||
# global default
|
||||
NORMAL 00
|
||||
# normal file
|
||||
FILE 00
|
||||
# directory
|
||||
DIR 36
|
||||
# symbolic link
|
||||
LINK 35
|
||||
|
||||
# pipe, socket, block device, character device (blue bg)
|
||||
FIFO 30;44
|
||||
SOCK 35;44
|
||||
DOOR 35;44 # Solaris 2.5 and later
|
||||
BLK 33;44
|
||||
CHR 37;44
|
||||
|
||||
|
||||
#############################################################################
|
||||
### By file attributes
|
||||
|
||||
# Orphaned symlinks (blinking white on red)
|
||||
# Blink may or may not work (works on iTerm dark or light, and Putty dark)
|
||||
ORPHAN 05;37;41
|
||||
# ... and the files that orphaned symlinks point to (blinking white on red)
|
||||
MISSING 05;37;41
|
||||
|
||||
# files with execute permission
|
||||
EXEC 01;31 # Unix
|
||||
.cmd 01;31 # Win
|
||||
.exe 01;31 # Win
|
||||
.com 01;31 # Win
|
||||
.bat 01;31 # Win
|
||||
.reg 01;31 # Win
|
||||
.app 01;31 # OSX
|
||||
|
||||
#############################################################################
|
||||
### By extension
|
||||
|
||||
# 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 '#')
|
||||
|
||||
### Text formats
|
||||
|
||||
# Text that we can edit with a regular editor
|
||||
.txt 32
|
||||
.org 32
|
||||
.md 32
|
||||
.mkd 32
|
||||
|
||||
# Source text
|
||||
.h 32
|
||||
.c 32
|
||||
.C 32
|
||||
.cc 32
|
||||
.cxx 32
|
||||
.objc 32
|
||||
.sh 32
|
||||
.csh 32
|
||||
.zsh 32
|
||||
.el 32
|
||||
.vim 32
|
||||
.java 32
|
||||
.pl 32
|
||||
.pm 32
|
||||
.py 32
|
||||
.rb 32
|
||||
.hs 32
|
||||
.php 32
|
||||
.htm 32
|
||||
.html 32
|
||||
.shtml 32
|
||||
.xml 32
|
||||
.rdf 32
|
||||
.css 32
|
||||
.js 32
|
||||
.man 32
|
||||
.0 32
|
||||
.1 32
|
||||
.2 32
|
||||
.3 32
|
||||
.4 32
|
||||
.5 32
|
||||
.6 32
|
||||
.7 32
|
||||
.8 32
|
||||
.9 32
|
||||
.l 32
|
||||
.n 32
|
||||
.p 32
|
||||
.pod 32
|
||||
.tex 32
|
||||
|
||||
### Multimedia formats
|
||||
|
||||
# Image
|
||||
.bmp 33
|
||||
.cgm 33
|
||||
.dl 33
|
||||
.dvi 33
|
||||
.emf 33
|
||||
.eps 33
|
||||
.gif 33
|
||||
.jpeg 33
|
||||
.jpg 33
|
||||
.JPG 33
|
||||
.mng 33
|
||||
.pbm 33
|
||||
.pcx 33
|
||||
.pdf 33
|
||||
.pgm 33
|
||||
.png 33
|
||||
.ppm 33
|
||||
.pps 33
|
||||
.ppsx 33
|
||||
.ps 33
|
||||
.svg 33
|
||||
.svgz 33
|
||||
.tga 33
|
||||
.tif 33
|
||||
.tiff 33
|
||||
.xbm 33
|
||||
.xcf 33
|
||||
.xpm 33
|
||||
.xwd 33
|
||||
.xwd 33
|
||||
.yuv 33
|
||||
|
||||
# Audio
|
||||
.aac 33
|
||||
.au 33
|
||||
.flac 33
|
||||
.mid 33
|
||||
.midi 33
|
||||
.mka 33
|
||||
.mp3 33
|
||||
.mpa 33
|
||||
.mpeg 33
|
||||
.mpg 33
|
||||
.ogg 33
|
||||
.ra 33
|
||||
.wav 33
|
||||
|
||||
# Video
|
||||
.anx 33
|
||||
.asf 33
|
||||
.avi 33
|
||||
.axv 33
|
||||
.flc 33
|
||||
.fli 33
|
||||
.flv 33
|
||||
.gl 33
|
||||
.m2v 33
|
||||
.m4v 33
|
||||
.mkv 33
|
||||
.mov 33
|
||||
.mp4 33
|
||||
.mp4v 33
|
||||
.mpeg 33
|
||||
.mpg 33
|
||||
.nuv 33
|
||||
.ogm 33
|
||||
.ogv 33
|
||||
.ogx 33
|
||||
.qt 33
|
||||
.rm 33
|
||||
.rmvb 33
|
||||
.swf 33
|
||||
.vob 33
|
||||
.wmv 33
|
||||
|
||||
### Misc
|
||||
|
||||
# Binary document formats and multimedia source
|
||||
.doc 31
|
||||
.docx 31
|
||||
.rtf 31
|
||||
.dot 31
|
||||
.dotx 31
|
||||
.xls 31
|
||||
.xlsx 31
|
||||
.ppt 31
|
||||
.pptx 31
|
||||
.fla 31
|
||||
.psd 31
|
||||
|
||||
# Archives, compressed
|
||||
.7z 1;35
|
||||
.apk 1;35
|
||||
.arj 1;35
|
||||
.bin 1;35
|
||||
.bz 1;35
|
||||
.bz2 1;35
|
||||
.cab 1;35 # Win
|
||||
.deb 1;35
|
||||
.dmg 1;35 # OSX
|
||||
.gem 1;35
|
||||
.gz 1;35
|
||||
.iso 1;35
|
||||
.jar 1;35
|
||||
.msi 1;35 # Win
|
||||
.rar 1;35
|
||||
.rpm 1;35
|
||||
.tar 1;35
|
||||
.tbz 1;35
|
||||
.tbz2 1;35
|
||||
.tgz 1;35
|
||||
.tx 1;35
|
||||
.war 1;35
|
||||
.xpi 1;35
|
||||
.xz 1;35
|
||||
.z 1;35
|
||||
.Z 1;35
|
||||
.zip 1;35
|
||||
|
||||
# For testing
|
||||
.ANSI-30-black 30
|
||||
.ANSI-01;30-brblack 01;30
|
||||
.ANSI-31-red 31
|
||||
.ANSI-01;31-brred 01;31
|
||||
.ANSI-32-green 32
|
||||
.ANSI-01;32-brgreen 01;32
|
||||
.ANSI-33-yellow 33
|
||||
.ANSI-01;33-bryellow 01;33
|
||||
.ANSI-34-blue 34
|
||||
.ANSI-01;34-brblue 01;34
|
||||
.ANSI-35-magenta 35
|
||||
.ANSI-01;35-brmagenta 01;35
|
||||
.ANSI-36-cyan 36
|
||||
.ANSI-01;36-brcyan 01;36
|
||||
.ANSI-37-white 37
|
||||
.ANSI-01;37-brwhite 01;37
|
||||
|
||||
#############################################################################
|
||||
# Your customizations
|
||||
|
||||
# Unimportant text files
|
||||
# For universal scheme, use brightgreen 01;32
|
||||
# For optimal on light bg (but too prominent on dark bg), use white 01;34
|
||||
.log 01;32
|
||||
*~ 01;32
|
||||
*# 01;32
|
||||
#.log 01;34
|
||||
#*~ 01;34
|
||||
#*# 01;34
|
||||
|
||||
# Unimportant non-text files
|
||||
# For universal scheme, use brightcyan 01;36
|
||||
# For optimal on dark bg (but too prominent on light bg), change to 01;33
|
||||
#.bak 01;36
|
||||
#.BAK 01;36
|
||||
#.old 01;36
|
||||
#.OLD 01;36
|
||||
#.org_archive 01;36
|
||||
#.off 01;36
|
||||
#.OFF 01;36
|
||||
#.dist 01;36
|
||||
#.DIST 01;36
|
||||
#.orig 01;36
|
||||
#.ORIG 01;36
|
||||
#.swp 01;36
|
||||
#.swo 01;36
|
||||
#*,v 01;36
|
||||
.bak 01;33
|
||||
.BAK 01;33
|
||||
.old 01;33
|
||||
.OLD 01;33
|
||||
.org_archive 01;33
|
||||
.off 01;33
|
||||
.OFF 01;33
|
||||
.dist 01;33
|
||||
.DIST 01;33
|
||||
.orig 01;33
|
||||
.ORIG 01;33
|
||||
.swp 01;33
|
||||
.swo 01;33
|
||||
*,v 01;33
|
||||
|
||||
# The brightmagenta (Solarized: purple) color is free for you to use for your
|
||||
# custom file type
|
||||
.gpg 34
|
||||
.gpg 34
|
||||
.pgp 34
|
||||
.asc 34
|
||||
.3des 34
|
||||
.aes 34
|
||||
.enc 34
|
||||
|
|
@ -0,0 +1,424 @@
|
|||
# Exact Solarized Light color theme for the color GNU ls utility.
|
||||
# Designed for dircolors (GNU coreutils) 5.97
|
||||
#
|
||||
# This simple theme was simultaneously designed for these terminal color schemes:
|
||||
# - Solarized dark
|
||||
# - Solarized light (best)
|
||||
# - default dark
|
||||
# - default light
|
||||
# with a slight optimization for Solarized Light.
|
||||
#
|
||||
# How the colors were selected:
|
||||
# - Terminal emulators often have an option typically enabled by default that makes
|
||||
# bold a different color. It is important to leave this option enabled so that
|
||||
# you can access the entire 16-color Solarized palette, and not just 8 colors.
|
||||
# - We favor universality over a greater number of colors. So we limit the number
|
||||
# of colors so that this theme will work out of the box in all terminals,
|
||||
# Solarized or not, dark or light.
|
||||
# - We choose to have the following category of files:
|
||||
# NORMAL & FILE, DIR, LINK, EXEC and
|
||||
# editable text including source, unimportant text, binary docs & multimedia source
|
||||
# files, viewable multimedia, archived/compressed, and unimportant non-text
|
||||
# - For uniqueness, we stay away from the Solarized foreground colors are -- either
|
||||
# base00 (brightyellow) or base0 (brighblue). However, they can be used if
|
||||
# you know what the bg/fg colors of your terminal are, in order to optimize the display.
|
||||
# - 3 different options are provided: universal, solarized dark, and solarized light.
|
||||
# The only difference between the universal scheme and one that's optimized for
|
||||
# dark/light is the color of "unimportant" files, which should blend more with the
|
||||
# background
|
||||
# - We note that blue is the hardest color to see on dark bg and yellow is the hardest
|
||||
# color to see on light bg (with blue being particularly bad). So we choose yellow
|
||||
# for multimedia files which are usually accessed in a GUI folder browser anyway.
|
||||
# And blue is kept for custom use of this scheme's user.
|
||||
# - See table below to see the assignments.
|
||||
|
||||
|
||||
# Insatllation instructions:
|
||||
# This file goes in the /etc directory, and must be world readable.
|
||||
# You can copy this file to .dir_colors in your $HOME directory to override
|
||||
# the system defaults.
|
||||
|
||||
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
|
||||
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
|
||||
# off.
|
||||
COLOR tty
|
||||
|
||||
# Below, there should be one TERM entry for each termtype that is colorizable
|
||||
TERM ansi
|
||||
TERM color_xterm
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM Eterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM nxterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen.linux
|
||||
TERM screen-w
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
|
||||
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
|
||||
EIGHTBIT 1
|
||||
|
||||
#############################################################################
|
||||
# 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
|
||||
#
|
||||
# NOTES:
|
||||
# - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html
|
||||
# - Color combinations
|
||||
# ANSI Color code Solarized Notes Universal SolDark SolLight
|
||||
# ~~~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~ ~~~~~~~~~ ~~~~~~~ ~~~~~~~~
|
||||
# 00 none NORMAL, FILE <SAME> <SAME>
|
||||
# 30 black base02
|
||||
# 01;30 bright black base03 bg of SolDark
|
||||
# 31 red red docs & mm src <SAME> <SAME>
|
||||
# 01;31 bright red orange EXEC <SAME> <SAME>
|
||||
# 32 green green editable text <SAME> <SAME>
|
||||
# 01;32 bright green base01 unimportant text <SAME>
|
||||
# 33 yellow yellow unclear in light bg multimedia <SAME> <SAME>
|
||||
# 01;33 bright yellow base00 fg of SolLight unimportant non-text
|
||||
# 34 blue blue unclear in dark bg user customized <SAME> <SAME>
|
||||
# 01;34 bright blue base0 fg in SolDark unimportant text
|
||||
# 35 magenta magenta LINK <SAME> <SAME>
|
||||
# 01;35 bright magenta violet archive/compressed <SAME> <SAME>
|
||||
# 36 cyan cyan DIR <SAME> <SAME>
|
||||
# 01;36 bright cyan base1 unimportant non-text <SAME>
|
||||
# 37 white base2
|
||||
# 01;37 bright white base3 bg in SolLight
|
||||
# 05;37;41 unclear in Putty dark
|
||||
|
||||
|
||||
### By file type
|
||||
|
||||
# global default
|
||||
NORMAL 00
|
||||
# normal file
|
||||
FILE 00
|
||||
# directory
|
||||
DIR 36
|
||||
# symbolic link
|
||||
LINK 35
|
||||
|
||||
# pipe, socket, block device, character device (blue bg)
|
||||
FIFO 30;44
|
||||
SOCK 35;44
|
||||
DOOR 35;44 # Solaris 2.5 and later
|
||||
BLK 33;44
|
||||
CHR 37;44
|
||||
|
||||
|
||||
#############################################################################
|
||||
### By file attributes
|
||||
|
||||
# Orphaned symlinks (blinking white on red)
|
||||
# Blink may or may not work (works on iTerm dark or light, and Putty dark)
|
||||
ORPHAN 05;37;41
|
||||
# ... and the files that orphaned symlinks point to (blinking white on red)
|
||||
MISSING 05;37;41
|
||||
|
||||
# files with execute permission
|
||||
EXEC 01;31 # Unix
|
||||
.cmd 01;31 # Win
|
||||
.exe 01;31 # Win
|
||||
.com 01;31 # Win
|
||||
.bat 01;31 # Win
|
||||
.reg 01;31 # Win
|
||||
.app 01;31 # OSX
|
||||
|
||||
#############################################################################
|
||||
### By extension
|
||||
|
||||
# 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 '#')
|
||||
|
||||
### Text formats
|
||||
|
||||
# Text that we can edit with a regular editor
|
||||
.txt 32
|
||||
.org 32
|
||||
.md 32
|
||||
.mkd 32
|
||||
|
||||
# Source text
|
||||
.h 32
|
||||
.c 32
|
||||
.C 32
|
||||
.cc 32
|
||||
.cxx 32
|
||||
.objc 32
|
||||
.sh 32
|
||||
.csh 32
|
||||
.zsh 32
|
||||
.el 32
|
||||
.vim 32
|
||||
.java 32
|
||||
.pl 32
|
||||
.pm 32
|
||||
.py 32
|
||||
.rb 32
|
||||
.hs 32
|
||||
.php 32
|
||||
.htm 32
|
||||
.html 32
|
||||
.shtml 32
|
||||
.xml 32
|
||||
.rdf 32
|
||||
.css 32
|
||||
.js 32
|
||||
.man 32
|
||||
.0 32
|
||||
.1 32
|
||||
.2 32
|
||||
.3 32
|
||||
.4 32
|
||||
.5 32
|
||||
.6 32
|
||||
.7 32
|
||||
.8 32
|
||||
.9 32
|
||||
.l 32
|
||||
.n 32
|
||||
.p 32
|
||||
.pod 32
|
||||
.tex 32
|
||||
|
||||
### Multimedia formats
|
||||
|
||||
# Image
|
||||
.bmp 33
|
||||
.cgm 33
|
||||
.dl 33
|
||||
.dvi 33
|
||||
.emf 33
|
||||
.eps 33
|
||||
.gif 33
|
||||
.jpeg 33
|
||||
.jpg 33
|
||||
.JPG 33
|
||||
.mng 33
|
||||
.pbm 33
|
||||
.pcx 33
|
||||
.pdf 33
|
||||
.pgm 33
|
||||
.png 33
|
||||
.ppm 33
|
||||
.pps 33
|
||||
.ppsx 33
|
||||
.ps 33
|
||||
.svg 33
|
||||
.svgz 33
|
||||
.tga 33
|
||||
.tif 33
|
||||
.tiff 33
|
||||
.xbm 33
|
||||
.xcf 33
|
||||
.xpm 33
|
||||
.xwd 33
|
||||
.xwd 33
|
||||
.yuv 33
|
||||
|
||||
# Audio
|
||||
.aac 33
|
||||
.au 33
|
||||
.flac 33
|
||||
.mid 33
|
||||
.midi 33
|
||||
.mka 33
|
||||
.mp3 33
|
||||
.mpa 33
|
||||
.mpeg 33
|
||||
.mpg 33
|
||||
.ogg 33
|
||||
.ra 33
|
||||
.wav 33
|
||||
|
||||
# Video
|
||||
.anx 33
|
||||
.asf 33
|
||||
.avi 33
|
||||
.axv 33
|
||||
.flc 33
|
||||
.fli 33
|
||||
.flv 33
|
||||
.gl 33
|
||||
.m2v 33
|
||||
.m4v 33
|
||||
.mkv 33
|
||||
.mov 33
|
||||
.mp4 33
|
||||
.mp4v 33
|
||||
.mpeg 33
|
||||
.mpg 33
|
||||
.nuv 33
|
||||
.ogm 33
|
||||
.ogv 33
|
||||
.ogx 33
|
||||
.qt 33
|
||||
.rm 33
|
||||
.rmvb 33
|
||||
.swf 33
|
||||
.vob 33
|
||||
.wmv 33
|
||||
|
||||
### Misc
|
||||
|
||||
# Binary document formats and multimedia source
|
||||
.doc 31
|
||||
.docx 31
|
||||
.rtf 31
|
||||
.dot 31
|
||||
.dotx 31
|
||||
.xls 31
|
||||
.xlsx 31
|
||||
.ppt 31
|
||||
.pptx 31
|
||||
.fla 31
|
||||
.psd 31
|
||||
|
||||
# Archives, compressed
|
||||
.7z 1;35
|
||||
.apk 1;35
|
||||
.arj 1;35
|
||||
.bin 1;35
|
||||
.bz 1;35
|
||||
.bz2 1;35
|
||||
.cab 1;35 # Win
|
||||
.deb 1;35
|
||||
.dmg 1;35 # OSX
|
||||
.gem 1;35
|
||||
.gz 1;35
|
||||
.iso 1;35
|
||||
.jar 1;35
|
||||
.msi 1;35 # Win
|
||||
.rar 1;35
|
||||
.rpm 1;35
|
||||
.tar 1;35
|
||||
.tbz 1;35
|
||||
.tbz2 1;35
|
||||
.tgz 1;35
|
||||
.tx 1;35
|
||||
.war 1;35
|
||||
.xpi 1;35
|
||||
.xz 1;35
|
||||
.z 1;35
|
||||
.Z 1;35
|
||||
.zip 1;35
|
||||
|
||||
# For testing
|
||||
.ANSI-30-black 30
|
||||
.ANSI-01;30-brblack 01;30
|
||||
.ANSI-31-red 31
|
||||
.ANSI-01;31-brred 01;31
|
||||
.ANSI-32-green 32
|
||||
.ANSI-01;32-brgreen 01;32
|
||||
.ANSI-33-yellow 33
|
||||
.ANSI-01;33-bryellow 01;33
|
||||
.ANSI-34-blue 34
|
||||
.ANSI-01;34-brblue 01;34
|
||||
.ANSI-35-magenta 35
|
||||
.ANSI-01;35-brmagenta 01;35
|
||||
.ANSI-36-cyan 36
|
||||
.ANSI-01;36-brcyan 01;36
|
||||
.ANSI-37-white 37
|
||||
.ANSI-01;37-brwhite 01;37
|
||||
|
||||
#############################################################################
|
||||
# Your customizations
|
||||
|
||||
# Unimportant text files
|
||||
# For universal scheme, use brightgreen 01;32
|
||||
# For optimal on light bg (but too prominent on dark bg), use white 01;34
|
||||
#.log 01;32
|
||||
#*~ 01;32
|
||||
#*# 01;32
|
||||
.log 01;34
|
||||
*~ 01;34
|
||||
*# 01;34
|
||||
|
||||
# Unimportant non-text files
|
||||
# For universal scheme, use brightcyan 01;36
|
||||
# For optimal on dark bg (but too prominent on light bg), change to 01;33
|
||||
.bak 01;36
|
||||
.BAK 01;36
|
||||
.old 01;36
|
||||
.OLD 01;36
|
||||
.org_archive 01;36
|
||||
.off 01;36
|
||||
.OFF 01;36
|
||||
.dist 01;36
|
||||
.DIST 01;36
|
||||
.orig 01;36
|
||||
.ORIG 01;36
|
||||
.swp 01;36
|
||||
.swo 01;36
|
||||
*,v 01;36
|
||||
#.bak 01;33
|
||||
#.BAK 01;33
|
||||
#.old 01;33
|
||||
#.OLD 01;33
|
||||
#.org_archive 01;33
|
||||
#.off 01;33
|
||||
#.OFF 01;33
|
||||
#.dist 01;33
|
||||
#.DIST 01;33
|
||||
#.orig 01;33
|
||||
#.ORIG 01;33
|
||||
#.swp 01;33
|
||||
#.swo 01;33
|
||||
#*,v 01;33
|
||||
|
||||
# The brightmagenta (Solarized: purple) color is free for you to use for your
|
||||
# custom file type
|
||||
.gpg 34
|
||||
.gpg 34
|
||||
.pgp 34
|
||||
.asc 34
|
||||
.3des 34
|
||||
.aes 34
|
||||
.enc 34
|
||||
|
|
@ -0,0 +1,423 @@
|
|||
# Exact Solarized color theme for the color GNU ls utility.
|
||||
# Designed for dircolors (GNU coreutils) 5.97
|
||||
#
|
||||
# This simple theme was simultaneously designed for these terminal color schemes:
|
||||
# - Solarized dark (best)
|
||||
# - Solarized light (best)
|
||||
# - default dark
|
||||
# - default light
|
||||
#
|
||||
# How the colors were selected:
|
||||
# - Terminal emulators often have an option typically enabled by default that makes
|
||||
# bold a different color. It is important to leave this option enabled so that
|
||||
# you can access the entire 16-color Solarized palette, and not just 8 colors.
|
||||
# - We favor universality over a greater number of colors. So we limit the number
|
||||
# of colors so that this theme will work out of the box in all terminals,
|
||||
# Solarized or not, dark or light.
|
||||
# - We choose to have the following category of files:
|
||||
# NORMAL & FILE, DIR, LINK, EXEC and
|
||||
# editable text including source, unimportant text, binary docs & multimedia source
|
||||
# files, viewable multimedia, archived/compressed, and unimportant non-text
|
||||
# - For uniqueness, we stay away from the Solarized foreground colors are -- either
|
||||
# base00 (brightyellow) or base0 (brighblue). However, they can be used if
|
||||
# you know what the bg/fg colors of your terminal are, in order to optimize the display.
|
||||
# - 3 different options are provided: universal, solarized dark, and solarized light.
|
||||
# The only difference between the universal scheme and one that's optimized for
|
||||
# dark/light is the color of "unimportant" files, which should blend more with the
|
||||
# background
|
||||
# - We note that blue is the hardest color to see on dark bg and yellow is the hardest
|
||||
# color to see on light bg (with blue being particularly bad). So we choose yellow
|
||||
# for multimedia files which are usually accessed in a GUI folder browser anyway.
|
||||
# And blue is kept for custom use of this scheme's user.
|
||||
# - See table below to see the assignments.
|
||||
|
||||
|
||||
# Insatllation instructions:
|
||||
# This file goes in the /etc directory, and must be world readable.
|
||||
# You can copy this file to .dir_colors in your $HOME directory to override
|
||||
# the system defaults.
|
||||
|
||||
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
|
||||
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
|
||||
# off.
|
||||
COLOR tty
|
||||
|
||||
# Below, there should be one TERM entry for each termtype that is colorizable
|
||||
TERM ansi
|
||||
TERM color_xterm
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM Eterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM nxterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen.linux
|
||||
TERM screen-w
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
|
||||
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
|
||||
EIGHTBIT 1
|
||||
|
||||
#############################################################################
|
||||
# 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
|
||||
#
|
||||
# NOTES:
|
||||
# - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html
|
||||
# - Color combinations
|
||||
# ANSI Color code Solarized Notes Universal SolDark SolLight
|
||||
# ~~~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~ ~~~~~~~~~ ~~~~~~~ ~~~~~~~~
|
||||
# 00 none NORMAL, FILE <SAME> <SAME>
|
||||
# 30 black base02
|
||||
# 01;30 bright black base03 bg of SolDark
|
||||
# 31 red red docs & mm src <SAME> <SAME>
|
||||
# 01;31 bright red orange EXEC <SAME> <SAME>
|
||||
# 32 green green editable text <SAME> <SAME>
|
||||
# 01;32 bright green base01 unimportant text <SAME>
|
||||
# 33 yellow yellow unclear in light bg multimedia <SAME> <SAME>
|
||||
# 01;33 bright yellow base00 fg of SolLight unimportant non-text
|
||||
# 34 blue blue unclear in dark bg user customized <SAME> <SAME>
|
||||
# 01;34 bright blue base0 fg in SolDark unimportant text
|
||||
# 35 magenta magenta LINK <SAME> <SAME>
|
||||
# 01;35 bright magenta violet archive/compressed <SAME> <SAME>
|
||||
# 36 cyan cyan DIR <SAME> <SAME>
|
||||
# 01;36 bright cyan base1 unimportant non-text <SAME>
|
||||
# 37 white base2
|
||||
# 01;37 bright white base3 bg in SolLight
|
||||
# 05;37;41 unclear in Putty dark
|
||||
|
||||
|
||||
### By file type
|
||||
|
||||
# global default
|
||||
NORMAL 00
|
||||
# normal file
|
||||
FILE 00
|
||||
# directory
|
||||
DIR 36
|
||||
# symbolic link
|
||||
LINK 35
|
||||
|
||||
# pipe, socket, block device, character device (blue bg)
|
||||
FIFO 30;44
|
||||
SOCK 35;44
|
||||
DOOR 35;44 # Solaris 2.5 and later
|
||||
BLK 33;44
|
||||
CHR 37;44
|
||||
|
||||
|
||||
#############################################################################
|
||||
### By file attributes
|
||||
|
||||
# Orphaned symlinks (blinking white on red)
|
||||
# Blink may or may not work (works on iTerm dark or light, and Putty dark)
|
||||
ORPHAN 05;37;41
|
||||
# ... and the files that orphaned symlinks point to (blinking white on red)
|
||||
MISSING 05;37;41
|
||||
|
||||
# files with execute permission
|
||||
EXEC 01;31 # Unix
|
||||
.cmd 01;31 # Win
|
||||
.exe 01;31 # Win
|
||||
.com 01;31 # Win
|
||||
.bat 01;31 # Win
|
||||
.reg 01;31 # Win
|
||||
.app 01;31 # OSX
|
||||
|
||||
#############################################################################
|
||||
### By extension
|
||||
|
||||
# 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 '#')
|
||||
|
||||
### Text formats
|
||||
|
||||
# Text that we can edit with a regular editor
|
||||
.txt 32
|
||||
.org 32
|
||||
.md 32
|
||||
.mkd 32
|
||||
|
||||
# Source text
|
||||
.h 32
|
||||
.c 32
|
||||
.C 32
|
||||
.cc 32
|
||||
.cxx 32
|
||||
.objc 32
|
||||
.sh 32
|
||||
.csh 32
|
||||
.zsh 32
|
||||
.el 32
|
||||
.vim 32
|
||||
.java 32
|
||||
.pl 32
|
||||
.pm 32
|
||||
.py 32
|
||||
.rb 32
|
||||
.hs 32
|
||||
.php 32
|
||||
.htm 32
|
||||
.html 32
|
||||
.shtml 32
|
||||
.xml 32
|
||||
.rdf 32
|
||||
.css 32
|
||||
.js 32
|
||||
.man 32
|
||||
.0 32
|
||||
.1 32
|
||||
.2 32
|
||||
.3 32
|
||||
.4 32
|
||||
.5 32
|
||||
.6 32
|
||||
.7 32
|
||||
.8 32
|
||||
.9 32
|
||||
.l 32
|
||||
.n 32
|
||||
.p 32
|
||||
.pod 32
|
||||
.tex 32
|
||||
|
||||
### Multimedia formats
|
||||
|
||||
# Image
|
||||
.bmp 33
|
||||
.cgm 33
|
||||
.dl 33
|
||||
.dvi 33
|
||||
.emf 33
|
||||
.eps 33
|
||||
.gif 33
|
||||
.jpeg 33
|
||||
.jpg 33
|
||||
.JPG 33
|
||||
.mng 33
|
||||
.pbm 33
|
||||
.pcx 33
|
||||
.pdf 33
|
||||
.pgm 33
|
||||
.png 33
|
||||
.ppm 33
|
||||
.pps 33
|
||||
.ppsx 33
|
||||
.ps 33
|
||||
.svg 33
|
||||
.svgz 33
|
||||
.tga 33
|
||||
.tif 33
|
||||
.tiff 33
|
||||
.xbm 33
|
||||
.xcf 33
|
||||
.xpm 33
|
||||
.xwd 33
|
||||
.xwd 33
|
||||
.yuv 33
|
||||
|
||||
# Audio
|
||||
.aac 33
|
||||
.au 33
|
||||
.flac 33
|
||||
.mid 33
|
||||
.midi 33
|
||||
.mka 33
|
||||
.mp3 33
|
||||
.mpa 33
|
||||
.mpeg 33
|
||||
.mpg 33
|
||||
.ogg 33
|
||||
.ra 33
|
||||
.wav 33
|
||||
|
||||
# Video
|
||||
.anx 33
|
||||
.asf 33
|
||||
.avi 33
|
||||
.axv 33
|
||||
.flc 33
|
||||
.fli 33
|
||||
.flv 33
|
||||
.gl 33
|
||||
.m2v 33
|
||||
.m4v 33
|
||||
.mkv 33
|
||||
.mov 33
|
||||
.mp4 33
|
||||
.mp4v 33
|
||||
.mpeg 33
|
||||
.mpg 33
|
||||
.nuv 33
|
||||
.ogm 33
|
||||
.ogv 33
|
||||
.ogx 33
|
||||
.qt 33
|
||||
.rm 33
|
||||
.rmvb 33
|
||||
.swf 33
|
||||
.vob 33
|
||||
.wmv 33
|
||||
|
||||
### Misc
|
||||
|
||||
# Binary document formats and multimedia source
|
||||
.doc 31
|
||||
.docx 31
|
||||
.rtf 31
|
||||
.dot 31
|
||||
.dotx 31
|
||||
.xls 31
|
||||
.xlsx 31
|
||||
.ppt 31
|
||||
.pptx 31
|
||||
.fla 31
|
||||
.psd 31
|
||||
|
||||
# Archives, compressed
|
||||
.7z 1;35
|
||||
.apk 1;35
|
||||
.arj 1;35
|
||||
.bin 1;35
|
||||
.bz 1;35
|
||||
.bz2 1;35
|
||||
.cab 1;35 # Win
|
||||
.deb 1;35
|
||||
.dmg 1;35 # OSX
|
||||
.gem 1;35
|
||||
.gz 1;35
|
||||
.iso 1;35
|
||||
.jar 1;35
|
||||
.msi 1;35 # Win
|
||||
.rar 1;35
|
||||
.rpm 1;35
|
||||
.tar 1;35
|
||||
.tbz 1;35
|
||||
.tbz2 1;35
|
||||
.tgz 1;35
|
||||
.tx 1;35
|
||||
.war 1;35
|
||||
.xpi 1;35
|
||||
.xz 1;35
|
||||
.z 1;35
|
||||
.Z 1;35
|
||||
.zip 1;35
|
||||
|
||||
# For testing
|
||||
.ANSI-30-black 30
|
||||
.ANSI-01;30-brblack 01;30
|
||||
.ANSI-31-red 31
|
||||
.ANSI-01;31-brred 01;31
|
||||
.ANSI-32-green 32
|
||||
.ANSI-01;32-brgreen 01;32
|
||||
.ANSI-33-yellow 33
|
||||
.ANSI-01;33-bryellow 01;33
|
||||
.ANSI-34-blue 34
|
||||
.ANSI-01;34-brblue 01;34
|
||||
.ANSI-35-magenta 35
|
||||
.ANSI-01;35-brmagenta 01;35
|
||||
.ANSI-36-cyan 36
|
||||
.ANSI-01;36-brcyan 01;36
|
||||
.ANSI-37-white 37
|
||||
.ANSI-01;37-brwhite 01;37
|
||||
|
||||
#############################################################################
|
||||
# Your customizations
|
||||
|
||||
# Unimportant text files
|
||||
# For universal scheme, use brightgreen 01;32
|
||||
# For optimal on light bg (but too prominent on dark bg), use white 01;34
|
||||
.log 01;32
|
||||
*~ 01;32
|
||||
*# 01;32
|
||||
#.log 01;34
|
||||
#*~ 01;34
|
||||
#*# 01;34
|
||||
|
||||
# Unimportant non-text files
|
||||
# For universal scheme, use brightcyan 01;36
|
||||
# For optimal on dark bg (but too prominent on light bg), change to 01;33
|
||||
.bak 01;36
|
||||
.BAK 01;36
|
||||
.old 01;36
|
||||
.OLD 01;36
|
||||
.org_archive 01;36
|
||||
.off 01;36
|
||||
.OFF 01;36
|
||||
.dist 01;36
|
||||
.DIST 01;36
|
||||
.orig 01;36
|
||||
.ORIG 01;36
|
||||
.swp 01;36
|
||||
.swo 01;36
|
||||
*,v 01;36
|
||||
#.bak 01;33
|
||||
#.BAK 01;33
|
||||
#.old 01;33
|
||||
#.OLD 01;33
|
||||
#.org_archive 01;33
|
||||
#.off 01;33
|
||||
#.OFF 01;33
|
||||
#.dist 01;33
|
||||
#.DIST 01;33
|
||||
#.orig 01;33
|
||||
#.ORIG 01;33
|
||||
#.swp 01;33
|
||||
#.swo 01;33
|
||||
#*,v 01;33
|
||||
|
||||
# The brightmagenta (Solarized: purple) color is free for you to use for your
|
||||
# custom file type
|
||||
.gpg 34
|
||||
.gpg 34
|
||||
.pgp 34
|
||||
.asc 34
|
||||
.3des 34
|
||||
.aes 34
|
||||
.enc 34
|
||||
|
|
@ -7,7 +7,19 @@ export GREP_COLOR='1;33'
|
|||
# colored ls
|
||||
export LSCOLORS='Gxfxcxdxdxegedabagacad'
|
||||
|
||||
# colored ls
|
||||
if [[ ! -z $(which dircolors) ]]
|
||||
then
|
||||
export DIRCOLORS_COMMAND=dircolors
|
||||
elif [[ ! -z $(which gdircolors) ]]
|
||||
then
|
||||
export DIRCOLORS_COMMAND=gdircolors
|
||||
fi
|
||||
eval `$DIRCOLORS_COMMAND $BASH_IT/dircolors/$LS_THEME`
|
||||
|
||||
|
||||
# Load the theme
|
||||
if [[ $BASH_IT_THEME ]]; then
|
||||
source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue