From d648dd575187a2a118481441a6712b64927f90c1 Mon Sep 17 00:00:00 2001 From: Derek Payton Date: Thu, 4 Feb 2010 11:07:50 -0800 Subject: [PATCH] nano config, added .bash_profile, and tweaks to .bashrc --- .bash_profile | 3 + .bashrc | 4 +- .hgrc | 5 + .nano/apache2.nanorc | 43 +++++ .nano/asm.nanorc | 17 ++ .nano/c-file.nanorc | 10 + .nano/c.nanorc | 30 +++ .nano/changelog.nanorc | 27 +++ .nano/changelogs.nanorc | 19 ++ .nano/clike.nanorc | 27 +++ .nano/config.nanorc | 7 + .nano/config2.nanorc | 9 + .nano/config3.nanorc | 8 + .nano/configfiles.nanorc | 18 ++ .nano/conky.nanorc | 17 ++ .nano/css.nanorc | 19 ++ .nano/debian.nanorc | 20 ++ .nano/default.nanorc | 5 + .nano/delphi.nanorc | 7 + .nano/desc.nanorc | 11 ++ .nano/dotemacs.nanorc | 2 + .nano/dummy.nanorc | 40 ++++ .nano/ekghistory.nanorc | 7 + .nano/etc-stuff.nanorc | 372 ++++++++++++++++++++++++++++++++++++++ .nano/etcxml.nanorc | 29 +++ .nano/gentoo.nanorc | 50 +++++ .nano/groff.nanorc | 24 +++ .nano/havp.nanorc | 10 + .nano/html.nanorc | 5 + .nano/info.nanorc | 18 ++ .nano/initng.nanorc | 22 +++ .nano/initscript.nanorc | 28 +++ .nano/java.nanorc | 12 ++ .nano/js.nanorc | 38 ++++ .nano/log-stuff.nanorc | 45 +++++ .nano/maincf.nanorc | 8 + .nano/makefile.nanorc | 33 ++++ .nano/man.nanorc | 9 + .nano/mimetype.nanorc | 6 + .nano/mutt.nanorc | 4 + .nano/named.nanorc | 14 ++ .nano/nanorc.nanorc | 16 ++ .nano/nscd.nanorc | 5 + .nano/others.nanorc | 112 ++++++++++++ .nano/paludis.nanorc | 130 +++++++++++++ .nano/passwd.nanorc | 12 ++ .nano/patch.nanorc | 10 + .nano/perl.nanorc | 11 ++ .nano/php.nanorc | 30 +++ .nano/php2.nanorc | 12 ++ .nano/po.nanorc | 19 ++ .nano/postgresql.nanorc | 5 + .nano/pov.nanorc | 15 ++ .nano/privoxy.nanorc | 41 +++++ .nano/profile.nanorc | 10 + .nano/python.nanorc | 9 + .nano/rcfiles-new.nanorc | 31 ++++ .nano/rcfiles.nanorc | 11 ++ .nano/rsync.nanorc | 7 + .nano/ruby.nanorc | 30 +++ .nano/sh.nanorc | 13 ++ .nano/shlike.nanorc | 12 ++ .nano/softcam.nanorc | 10 + .nano/sources_list.nanorc | 18 ++ .nano/tab.nanorc | 12 ++ .nano/tcl.nanorc | 16 ++ .nano/tex.nanorc | 6 + .nano/urls.nanorc | 18 ++ .nano/vhost.nanorc | 42 +++++ .nano/xdefaults.nanorc | 10 + .nano/xml.nanorc | 20 ++ .nano/xorg.nanorc | 18 ++ .nanorc | 64 +++++++ 73 files changed, 1855 insertions(+), 2 deletions(-) create mode 100644 .bash_profile create mode 100644 .nano/apache2.nanorc create mode 100644 .nano/asm.nanorc create mode 100644 .nano/c-file.nanorc create mode 100644 .nano/c.nanorc create mode 100644 .nano/changelog.nanorc create mode 100644 .nano/changelogs.nanorc create mode 100644 .nano/clike.nanorc create mode 100644 .nano/config.nanorc create mode 100644 .nano/config2.nanorc create mode 100644 .nano/config3.nanorc create mode 100644 .nano/configfiles.nanorc create mode 100644 .nano/conky.nanorc create mode 100644 .nano/css.nanorc create mode 100644 .nano/debian.nanorc create mode 100644 .nano/default.nanorc create mode 100644 .nano/delphi.nanorc create mode 100644 .nano/desc.nanorc create mode 100644 .nano/dotemacs.nanorc create mode 100644 .nano/dummy.nanorc create mode 100644 .nano/ekghistory.nanorc create mode 100644 .nano/etc-stuff.nanorc create mode 100644 .nano/etcxml.nanorc create mode 100644 .nano/gentoo.nanorc create mode 100644 .nano/groff.nanorc create mode 100644 .nano/havp.nanorc create mode 100644 .nano/html.nanorc create mode 100644 .nano/info.nanorc create mode 100644 .nano/initng.nanorc create mode 100644 .nano/initscript.nanorc create mode 100644 .nano/java.nanorc create mode 100644 .nano/js.nanorc create mode 100644 .nano/log-stuff.nanorc create mode 100644 .nano/maincf.nanorc create mode 100644 .nano/makefile.nanorc create mode 100644 .nano/man.nanorc create mode 100644 .nano/mimetype.nanorc create mode 100644 .nano/mutt.nanorc create mode 100644 .nano/named.nanorc create mode 100644 .nano/nanorc.nanorc create mode 100644 .nano/nscd.nanorc create mode 100644 .nano/others.nanorc create mode 100644 .nano/paludis.nanorc create mode 100644 .nano/passwd.nanorc create mode 100644 .nano/patch.nanorc create mode 100644 .nano/perl.nanorc create mode 100644 .nano/php.nanorc create mode 100644 .nano/php2.nanorc create mode 100644 .nano/po.nanorc create mode 100644 .nano/postgresql.nanorc create mode 100644 .nano/pov.nanorc create mode 100644 .nano/privoxy.nanorc create mode 100644 .nano/profile.nanorc create mode 100644 .nano/python.nanorc create mode 100644 .nano/rcfiles-new.nanorc create mode 100644 .nano/rcfiles.nanorc create mode 100644 .nano/rsync.nanorc create mode 100644 .nano/ruby.nanorc create mode 100644 .nano/sh.nanorc create mode 100644 .nano/shlike.nanorc create mode 100644 .nano/softcam.nanorc create mode 100644 .nano/sources_list.nanorc create mode 100644 .nano/tab.nanorc create mode 100644 .nano/tcl.nanorc create mode 100644 .nano/tex.nanorc create mode 100644 .nano/urls.nanorc create mode 100644 .nano/vhost.nanorc create mode 100644 .nano/xdefaults.nanorc create mode 100644 .nano/xml.nanorc create mode 100644 .nano/xorg.nanorc create mode 100644 .nanorc diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..f600386 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,3 @@ +#!/bin/bash + +. $HOME/.bashrc diff --git a/.bashrc b/.bashrc index fb7474f..ba2f762 100644 --- a/.bashrc +++ b/.bashrc @@ -12,7 +12,7 @@ alias rm="rm -iv" export CLICOLOR=1 export LSCOLORS="ExGxcxdxbxegedabagacad" -# Hooray Nano! +# Hooray Nano! *ducks* export EDITOR=nano # Prompt is not as complicated as the format string would @@ -23,7 +23,7 @@ export EDITOR=nano # with user/host in green and working directory blue. # The first one sets the terminal title, the second is the prompt. export PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]" -export PS1="$PS1(\[\e[0;37m\]\A\[\e[0;37m\]) \[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ " +export PS1="$PS1(\[\e[0;37m\]\A\[\e[0;37m\]) \[\033[01;32m\]\u@\h\[\033[01;34m\] \[\e[0;36m\]\w\[\e[0;37m\] \$ " # Env variables and functions for virtualenvwrapper. export WORKON_HOME=$HOME/dev/virtualenvs diff --git a/.hgrc b/.hgrc index 18000d7..4db8bc5 100644 --- a/.hgrc +++ b/.hgrc @@ -2,3 +2,8 @@ ignore = ~/.hgignore ssh = ssh -q -C username = Derek Payton + +[extensions] +hgext.bookmarks = +hggit = + diff --git a/.nano/apache2.nanorc b/.nano/apache2.nanorc new file mode 100644 index 0000000..ab3a06a --- /dev/null +++ b/.nano/apache2.nanorc @@ -0,0 +1,43 @@ +## Apache httpd.conf highlighting +## +#how to add sites-enabled files? "default" is too generic to keep in here I think +syntax "Apache2" "httpd.conf$" +color brightwhite "(ServerRoot|LoadModule|(Lock|Pid)File|Timeout|(Max)?KeepAlive(Requests|Timeout)?)" +color brightwhite "(User|Group|LogFormat|ErrorLog|Include|(Script)?Alias)" +color brightwhite "(ErrorDocument|AccessFileName|UseCanonicalName|TypesConfig|DefaultType)" +color brightwhite "(HostnameLookups|IndexOptions|(Readme|Header)Name|LanguagePriority)" +color brightwhite "(AddIcon(ByEncoding|ByType)?|DefaultIcon|IndexIgnore|BrowserMatch)" +color brightwhite "(Add(Encoding|Language|(Default)?Charset|Type|Handler)|DirectoryIndex)" +color brightwhite "(DocumentRoot|Server(Admin|Signature)|LogLevel|CustomLog)" +color brightwhite "((Force)?LanguagePriority|NameVirtualHost)" +color brightyellow "(SetHandler|Order|Deny|Allow|SetOutputFilter)" +color yellow "(AllowOverride|FileInfo|AuthConfig|Limit)" +color yellow "([^A-Z0-9a-z]Options|Indexes|(\+|\-)?SymLinksIfOwnerMatch)" +color yellow "(Includes(NoExec)?|(\+|\-)?MultiViews)" +color yellow "(None|allow,deny|deny,allow|(allow)? from (all)?|Prefer|Fallback)" +color yellow "(Add(Handler|OutputFilter)|NumServers|AcceptMutex)" +color yellow "((Min|Max)Spare(Threads|Servers|Processors)|Start(Threads|Servers))" +color yellow "(MaxClients|(Min|Max)?ThreadsPerChild|MaxRequestsPerChild)" +color yellow "(FancyIndexing|VersionSort|ExecCGI|FollowSymLinks|(Min|Max)Processors)" +color yellow "hostmaster@[A-Za-z0-9\.]*" +color brightred "(On|Off)[[:space:]]*$" +color brightred "[[:space:]]+(debug|info|notice|warn|error|crit|alert|emerg)[[:space:]]*$" +color brightred "[[:space:]]+(combined|common|referer|agent)[[:space:]]*$" +color brightred "[[:space:]]+(redirect\-carefully|nokeepalive)[[:space:]]*" +color brightred "[[:space:]]+(force\-response\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+(downgrade\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+application/[a-zA-Z\-]+[[:space:]]*" +color brightred "[[:space:]]+type-map[[:space:]]*" +color magenta "[[:space:]]+[0-9]+[[:space:]]*" +color magenta "(/)?(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[1-9])(\.(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])){3}([[:space:]]+::(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])/(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9]))?" +color brightcyan start="<" end=">" +color white ""(\\.|[^\"])*"" +# Unix-based paths +# can't use \] in the regex for some reason?!? Maybe a bug? +# this is preventing a 100% "to the end of the line" match for a few +# lines (the trailing characters from ] to the EOL are not highlighted. +# if anyone knows how to make it work, let me know.. ;) +color white "[[:space:]]+(/[/\[\^#A-Za-z0-9\.\*\_\-]+)+" +color green "^[[:space:]]*#.*" +color cyan "\<(ServerName|Serveralias|DocumentRoot|DirectoryIndex|ErrorLog|CustomLog)\>" + diff --git a/.nano/asm.nanorc b/.nano/asm.nanorc new file mode 100644 index 0000000..e94ee90 --- /dev/null +++ b/.nano/asm.nanorc @@ -0,0 +1,17 @@ +## Here is an example for assembler. +## +syntax "asm" "\.(S|s|asm)$" +color red "\<[A-Z_]{2,}\>" +color brightgreen "\.(data|subsection|text)" +color green "\.(align|file|globl|global|hidden|section|size|type|weak)" +color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" +## Highlight strings (note: VERY resource intensive) +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +## Highlight comments +color brightblue "//.*" +color brightblue start="/\*" end="\*/" +## Highlight trailing whitespace +color ,green "[[:space:]]+$" diff --git a/.nano/c-file.nanorc b/.nano/c-file.nanorc new file mode 100644 index 0000000..2b56a6d --- /dev/null +++ b/.nano/c-file.nanorc @@ -0,0 +1,10 @@ +syntax "c-file" "\.(c|h)$" +color red "\<[A-Z_]{2,}\>" +color green "\<(float|double|char|int|short|long|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>" +color brightyellow "\<(for|if|while|do|else|case|switch|goto|continue|break|return)\>" +color brightcyan "^ *# *(define|undef|include|ifn?def|endif|elif|else|if)" +color brightmagenta "'([^\]|(\\['abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'" +color brightyellow "<[^= ]*>" ""(\\.|[^\"])*"" +color brightyellow start=""(\\.|[^\"])*\\ *$" end="^(\\.|[^\"])*"" +color brightblue "//.*" +color brightblue start="/\*" end="\*/" diff --git a/.nano/c.nanorc b/.nano/c.nanorc new file mode 100644 index 0000000..45da48b --- /dev/null +++ b/.nano/c.nanorc @@ -0,0 +1,30 @@ +## Here is an example for C/C++. +## +syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" +color brightred "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" +color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" +color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" +color brightyellow "\<(try|throw|catch|operator|new|delete)\>" +color magenta "\<(goto|continue|break|return)\>" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +## +## GCC builtins +color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +## +## This string is VERY resource intensive! +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/.nano/changelog.nanorc b/.nano/changelog.nanorc new file mode 100644 index 0000000..d465206 --- /dev/null +++ b/.nano/changelog.nanorc @@ -0,0 +1,27 @@ +syntax "changelog" "ChangeLog$" +color brightgreen "^\+.*" +color green "^\+\+\+.*" +color brightblue "^ .*" +color brightred "^-.*" +color red "^---.*" +color red "(\d\d\s\w\+\s\d\{4\})" +color brightyellow "^@@.*" +color magenta "^diff.*" + +#syn region GentooChangeLogRelease start=/^\*/ end=/$/ contains=GentooChangeLogReleaseDate +#syn match GentooChangeLogReleaseDate contained /(\d\d\s\w\+\s\d\{4\})/ +#syn region GentooChangeLogEntry start=/^\s\+/ end=/\n\n/ +# \ contains=GentooChangeLogEntryDate,GentooBug +#syn region GentooChangeLogEntryDate contained start=/\d\?\d\s\w\+\s\d\{4\}/ end=/;/ +# \ nextgroup=GentooChangeLogEntryAuthor,GentooChangeLogEntryEmail skipwhite skipnl +#syn region GentooChangeLogEntryAuthor contained start=/\S/ end=/\( <\)\@=/ +# \ nextgroup=GentooChangeLogEntryEmail skipwhite skipnl +#syn match GentooChangeLogEntryEmail contained /<\?[a-zA-Z0-9\.\-\_]\+@[a-zA-Z0-9\.\-\_]\+>\?/ +# \ nextgroup=GentooChangeLogFiles skipwhite skipnl +#syn region GentooChangeLogFiles contained start=/\(\S\)\@=/ end=/:/ +# \ contains=GentooChangeLogAddFile,GentooChangeLogDelFile,GentooChangeLogModFile +#" Add / delete / changed files +#syn region GentooChangeLogAddFile contained start=/+/ end=/\([,:]\)\@=/ +#syn region GentooChangeLogDelFile contained start=/-/ end=/\([,:]\)\@=/ +#syn region GentooChangeLogModFile contained start=/[a-zA-Z0-9]/ end=/\([,:]\)\@=/ + diff --git a/.nano/changelogs.nanorc b/.nano/changelogs.nanorc new file mode 100644 index 0000000..74158c2 --- /dev/null +++ b/.nano/changelogs.nanorc @@ -0,0 +1,19 @@ +## Changelog file syntax +## +syntax "changelogs" "ChangeLog*$" "HISTORY$" "NEWS$" + +color green "\+" +color red "\-" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]\/[0-9][0-9]\/[0-9][0-9]" +color blue "\<(CEST|CET|CST||CDT|EDT)\>" +color yellow "[0-9]\..*$" +color cyan "\*.*$" +color brightblue "\<(pre.*$|beta.*$|rc.*$|release.*$)\>" +color green "#.*$" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" +color magenta "[.0-9A-Za-z_]*[[:space:]]*[.0-9A-Za-z_]*[[:space:]]<" +color brightyellow "<(\\.|[^\"])*>" +color brightwhite "commit[[:space:]]*[.0-9A-Z_]*$" diff --git a/.nano/clike.nanorc b/.nano/clike.nanorc new file mode 100644 index 0000000..c8eb5ad --- /dev/null +++ b/.nano/clike.nanorc @@ -0,0 +1,27 @@ +## Here is an example for C/C++. +## +syntax "clike" "\.(m|pch)$" +color brightred "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" +color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" +color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" +color brightyellow "\<(try|throw|catch|operator|new|delete)\>" +color magenta "\<(goto|continue|break|return)\>" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +## +## GCC builtins +color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +## +## This string is VERY resource intensive! +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/" diff --git a/.nano/config.nanorc b/.nano/config.nanorc new file mode 100644 index 0000000..7e394ee --- /dev/null +++ b/.nano/config.nanorc @@ -0,0 +1,7 @@ +### several config files +syntax "config" "(\.|/|)config$" "(\.|/|)logout$" "(\.|/|)COLORS$" "(\.|/|)colors$" +color red "/.*$" "TERM" "\..*$" "=.*$" "\*.*$" +color white ":unscaled" "[0-9]" +color blue "setenv|export" "\;" +color green "#.*$" + diff --git a/.nano/config2.nanorc b/.nano/config2.nanorc new file mode 100644 index 0000000..54f686d --- /dev/null +++ b/.nano/config2.nanorc @@ -0,0 +1,9 @@ +### more config files +syntax "config2" "(\.|/|)env$" "(\.|/|)server.$" "hosts" "gpm" "local.*$" "bootsplash" "crypto-loop" +color red "/.*$" "http\:\/\/.*$" +color white ":unscaled" +color blue "setenv|export" +color brightwhite "[0-9]" +color green "#.*$" +color white "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" + diff --git a/.nano/config3.nanorc b/.nano/config3.nanorc new file mode 100644 index 0000000..63fe000 --- /dev/null +++ b/.nano/config3.nanorc @@ -0,0 +1,8 @@ +### even more config files ;-) +syntax "config3" "iptables" "ntp.*$" "rsyncd" "xfs" "saslauthd" "timidity" "net.*$" "hdparm" "esound" "login.*$" +color red "/.*$" "http\:\/\/.*$" ""(\\.|[^\"])*"" "\<(server)\>" "\<(logfile)\>""\<(driftfile)\>" +color white ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" +color blue "setenv|export" +color brightwhite "[0-9]" +color green "#.*$" + diff --git a/.nano/configfiles.nanorc b/.nano/configfiles.nanorc new file mode 100644 index 0000000..10140cc --- /dev/null +++ b/.nano/configfiles.nanorc @@ -0,0 +1,18 @@ +### all *conf files (e.g. make.conf, xorg.conf, grub.conf, make.globals, Xfce files...) +syntax "configfiles" "(\.|/|)conf$" "(\.|/|)ample$" "(\.|/|)globals$" "xfce.*$" "syslog-ng" "sudoers" +color brightwhite "\<(alias)\>" +color blue "<(\\.|[^'])*>" +color magenta "[a-zA-Z0-9\_]+=" +color white ">(\\.|[^'><])*" "\<(logfile)\>" "\<(driftfile)\>" "\<(restrict)\>" +color white ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" +color magenta "'(\\.|[^'])*'" +color brightwhite "[0-9]" +color brightwhite "[<>]" +color magenta "Section" "EndSection" "SubSection" "EndSubSection" +color red "\<(root)\>" +color brightred,blue "^.*-->" start="" + diff --git a/.nano/conky.nanorc b/.nano/conky.nanorc new file mode 100644 index 0000000..b0b7a87 --- /dev/null +++ b/.nano/conky.nanorc @@ -0,0 +1,17 @@ +## Conky config highlighting +## +syntax "Conky" ".conkyrc$" +color brightblue "(use_spacer|background|use_xft|xftfont|xftalpha)" +color brightblue "(mail_spool|update_interval|own_window)" +color brightblue "(double_buffer|minimum_size)" +color brightblue "(draw_(outline|borders|shades)|stippled_borders)" +color brightblue "border_(margin|width)" +color brightblue "default_((shade_|outline_)?color)" +color brightblue "(alignment|gap_x|gap_y|no_buffers|uppercase)" +color brightblue "^TEXT[[:space:]]*$" +color brightred "[[:space:]]+(yes|no)[[:space:]]*" +color brightred "(top_left|top_right|bottom_left|bottom_right)[[:space:]]*$" +color magenta "[[:space:]]+([[:space:]]*([0-9]\.?))+[[:space:]]*" +color brightred "\$\{?[a-zA-Z_0-9\# ]+\}?" +color green "^[[:space:]]*#.*" +color white "[[:space:]]+\#[0-9A-Fa-f]{6}" diff --git a/.nano/css.nanorc b/.nano/css.nanorc new file mode 100644 index 0000000..7a33bd2 --- /dev/null +++ b/.nano/css.nanorc @@ -0,0 +1,19 @@ +############################################################################## +# +# Syntax highlighting for CSS files +# +# Author: Simon Rupf, simon.rupf(a)int-ag.ch +# License: GPL 2 or later +# +# Version: 2005-02-14 +# +############################################################################## + +syntax "css" "\.css$" +color brightred "." +color brightyellow start="\{" end="\}" +color brightwhite start=":" end="[;^\{]" +color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" +color brightblue start="\/\*" end="\\*/" +color green ";|:|\{|\}" + diff --git a/.nano/debian.nanorc b/.nano/debian.nanorc new file mode 100644 index 0000000..a945dee --- /dev/null +++ b/.nano/debian.nanorc @@ -0,0 +1,20 @@ +## Here is an exmaple for apt's sources.list +## Adapted from http://milianw.de/blog/Syntax-Highlighting-in-Nano +## (mail@milianw.de). +## +syntax "apt/sources.list" "sources\.list(\.old|~)?$" +# component +color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+ .+$" +# distribution +color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+" +# URI +color brightgreen "(http|file|ftp):/[^ ]+" +# cdroms +# [^\]] does not work... +color brightgreen "cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/" +# deb / deb-src +color yellow "^deb" +color yellow "^deb-src" +# comments +color brightblue "#.*" + diff --git a/.nano/default.nanorc b/.nano/default.nanorc new file mode 100644 index 0000000..ed8b207 --- /dev/null +++ b/.nano/default.nanorc @@ -0,0 +1,5 @@ +syntax "default" +color green "^#.*" +color brightgreen "^##.*" +color yellow "^###.*" +#color green "^[ \t]*#.* diff --git a/.nano/delphi.nanorc b/.nano/delphi.nanorc new file mode 100644 index 0000000..147eca2 --- /dev/null +++ b/.nano/delphi.nanorc @@ -0,0 +1,7 @@ +syntax "Delphi Source" "\.pas$" +color brightcyan "\<(boolean|byte|char|double|float|integer|long|new|short|this|transient|void)\>" +color brightred "\<(break|case|catch|continue|default|do|else|finally|for|if|then|return|switch|throw|try|while|function)\>" +#color cyan "\<(abstract|unit|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|$color brightyellow "\<(until|repeat|var|uses|type|begin|end|const)\>" +color magenta "\<(true|false|null|procedure)\>" +color brightblue "//.*" +color brightblue start="\{" end="\}" diff --git a/.nano/desc.nanorc b/.nano/desc.nanorc new file mode 100644 index 0000000..ea94078 --- /dev/null +++ b/.nano/desc.nanorc @@ -0,0 +1,11 @@ +### all *desc files ( e.g. use.desc, use.local.desc ) +syntax "use" "(\.|/|)desc$" +color green ".*\-" +color white "\:.*$" +color white "\-.*$" +color magenta "\:(\\.|[^'])*\-" +color blue "\-(\\.|[^'])*\:" +color yellow "\/(\\.|[^'])*\:" +color red "x86" "http\:\/\/.*$" +color brightred "\!\!(\\.|[^'])*\!\!" "DO NOT SET THIS FLAG YOURSELF!" +color green "#.*$" diff --git a/.nano/dotemacs.nanorc b/.nano/dotemacs.nanorc new file mode 100644 index 0000000..dc2f0aa --- /dev/null +++ b/.nano/dotemacs.nanorc @@ -0,0 +1,2 @@ +syntax "dotemacs" "^.emacs$" +color green "^;.*" diff --git a/.nano/dummy.nanorc b/.nano/dummy.nanorc new file mode 100644 index 0000000..be4aff5 --- /dev/null +++ b/.nano/dummy.nanorc @@ -0,0 +1,40 @@ +########################################################################## +########################################################################## +# +# +# D U M M Y Ruleset +# +# +# If you want to create your own rules you can use this simple example: +# +# syntax "Dummy" "(\.|/|)foo$" -> this creates the ruleset "Dummy" and it +# matches all filenames ending with foo +# "foo" -> this matches foo exactly +# "foo.*$" -> this matches files beginning with foo +# +# +# +# After you selected the files you can define rulesets for this file: +# +# +# color blue "#.*$" -> colors all after "#" blue on this line +# color red "\@" -> colors all "@" red, \ means to handle it _not_ +# as a special sign +# color yellow "\<(profi)\>" -> colors only the word profi yellow +# color yellow "profi" -> colors all strings "profi" yellow, also in +# profile +# color black "[0-9]" -> colors all numbers black +# color magenta "'(\\.|[^'])*'" -> colors all between ' and ' magenta, +# but only on the same line +# color red "[A-Z0-9\_]+=" -> matches everything folowed by = +# color green "setenv|export" -> matches the string setenv OR export +# color cyan "^.*(foobar).*$" -> colors the whole line cyan, by matching foobar +# on that line +# +# color brightred,blue start="" +# +# -> colors all between brightred on blue +# even if there are more lines between +# +# +########################################################################### diff --git a/.nano/ekghistory.nanorc b/.nano/ekghistory.nanorc new file mode 100644 index 0000000..09350b2 --- /dev/null +++ b/.nano/ekghistory.nanorc @@ -0,0 +1,7 @@ +syntax "ekghistory" "(\.|/|).gg/history" +icolor cyan start="<" end=">" +icolor green ",(\\.|[^\"])*," +color yellow "chatrecv" +color cyan "chatsend" +color brightwhite "[0-9]" + diff --git a/.nano/etc-stuff.nanorc b/.nano/etc-stuff.nanorc new file mode 100644 index 0000000..1b80df5 --- /dev/null +++ b/.nano/etc-stuff.nanorc @@ -0,0 +1,372 @@ +## /etc/ stuff syntax +## +#syntax "etcconf.d" "conf.d/(\.|/|)" +#color magenta "\".*$" +#color blue "#.*$" + +syntax "group" "group$" +color green "[0-9]\:.*$" +color brightwhite "[0-9]" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" + +syntax "modules" "modules.conf$" "modules.d/(\.|/|)" +color brightwhite "[0-9]" +color red "alias" +color brightred "(probeall|options)" +color green "#.*$" + +syntax "modprobe" "modprobe.conf$" +color brightwhite "[0-9]" +color red "alias" +color brightred "options" +color magenta "[a-zA-Z0-9\_]+=" +color green "#.*$" + +syntax "hosts" "hosts$" +#color brightwhite "[0-9]" +color yellow "^[[:space:]]*[.0-9A-Z_]*.*$" +color brightblue "^[[:space:]]*[.0-9A-Z_]*" +color red "127.0.0.1" +color cyan "\:\:" +color green "#.*$" + +syntax "mplayer" "mplayer.conf$" +color brightgreen "\=.*$" +color brightred "no" +color cyan "\=" +color green "#.*$" + +syntax "mplayerplugin" "mplayerplug\-in.conf$" +color brightgreen "\=.*$" +color brightred "0" +color cyan "\=" +color green "#.*$" + +syntax "sensors" "sensors.conf$" +color brightyellow "\".*$" +color yellow "\<(label|compute|set|chip)\>" +color green "#.*$" + +syntax "sysctl" "sysctl.conf$" +color brightwhite "[0-9]" +color cyan "\=" +color green "#.*$" + +syntax "dircolors" "DIR_COLORS$" +color yellow "\<(TERM|NORMAL|FILE|DIR|LINK|FIFO|SOCK|DOOR|BLK|CHR|ORPHAN|MISSING|SETUID|SETGID)\>" +color yellow "\<(STICKY|EXEC|STICKY_OTHER_WRITABLE|OTHER_WRITABLE)\>" +color brightblack "[0-9][0-9]\;.*$" +color cyan "\.[.0-9A-Z_]*[[:space:]]" +color green "#.*$" + +syntax "modes" "fb.modes$" +color yellow "\<(mode|endmode)\>" +color cyan "\<(geometry|timings|hsync|vsync|double)\>" +color green "#.*$" + +syntax "serial" "serial.conf$" +color brightwhite "[0-9]" +color cyan "\<(uart|port|irq|fourport)\>" +color green "#.*$" + +syntax "services" "services$" +color cyan "/tcp" +color magenta "udp" +color brightblack "/" +color brightwhite "[0-9]" +color green "#.*$" + +syntax "crontab" "crontab$" +color brightwhite "[0-9]" +color cyan "\*" +color yellow "[[:space:]]/.*$" +color brightblack "(&|>)" +color green "#.*$" + +syntax "nscd" "nscd.conf$" +color cyan "(passwd|group|hosts)" +color yellow "([0-9]|yes)" +color green "#.*$" + +syntax "rsync" "rsyncd.conf$" +color cyan "(hosts|(u|g)id|pid\ file|use\ chroot|read\ only|address|max\ connections|motd\ file)" +color cyan "(log\ format|syslog\ facility|timeout)" +color yellow "(path|comment|exclude)" +color brightyellow start="\[" end="\]" +color green "#.*$" + +syntax "lilo" "lilo.conf$" +color cyan "(boot|map|install|menu\-scheme|timeout|delay|prompt|vga|default)" +color brightwhite "[0-9]" +color magenta "(lba32|linear|compact|image)" +color brightyellow "(root|label|read\-only)" +color yellow "\/.*$" +color green "#.*$" + +syntax "hdparm" "hdparm$" +color cyan "(pata|sata)_all_args" +color cyan "[A-Za-z0-9]*_args" +color magenta "\".*$" +color green "#.*$" + +syntax "ini" "\.ini$" +color yellow "\[.*]" +color green "\;.*$" + +syntax "smbconf" "smb.conf$" +color brightcyan "\=.*$" +color cyan "\/.*$" +color brightred "(no|No)" +color brightgreen "(yes|Yes)" +color brightyellow "(workgroup.*$|hosts\ allow.*$|interfaces.*$|netbios\ name.*$)" +color yellow "\[.*]|\=" +icolor magenta "^[[:space:]]*[.A-Z]*" +icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*" +icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*" +color green "\;.*$" +color green "#.*$" + +syntax "mke2fs" "mke2fs.conf$" +color cyan "(base_features|blocksize|inode_ratio)" +color yellow "(small|floppy|news|largefile|largefile4)" +color brightwhite "[0-9]" +color brightyellow start="\[" end="\]" +color blue "\{|\}" +color brightblack "\=" +color green "#.*$" + +#this on may need fewer colors ;) +syntax "squidconf" "squid.conf$" +color brightyellow "(http_port|hierarchy_stoplist|maximum_object_size|cache_dir|dns_testnames)" +color brightyellow "(coredump_dir|pipeline_prefetch|cache_mgr|visible_hostname|ftp_user|client_netmask)" +color cyan "(acl|refresh_pattern|quick_abort_(min|max)|(cache|memory)_replacement_policy|(access|cache|cache_store)_log|cache_host)" +color yellow "((http|icp|snmp)_access|snmp_port|parent|sibling|anonymize_headers|fake_user_agent)" +color brightgreen "(allow|transparent|[[:space:]]on)" +color brightred "(deny|reload\-into\-ims|override\-expire|override\-lastmod|[[:space:]]off)" +color magenta "(src|dst|method)" +color brightcyan "(seconds|minutes|hours|(G|M|K)B)" +color brightblack "[0-9]" +color green "#.*$" + +syntax "distcchosts" "/etc/distcc/hosts$" +color brightblue "[0-9]" +color yellow "localhost" +color magenta "(/|@|:)" +color green "#.*$" + +syntax "logrotate" "logrotate.conf$" +color brightwhite "[0-9]" +color magenta start="/" end="[[:space:]]" +color cyan "(create|compress|include|notifempty|nomail|noolddir|\{|\})" +color yellow "(weekly|daily|rotate|postrotate|sharedscripts)" +color magenta "logrotate" +color green "#.*$" + +syntax "ppppears" "/etc/ppp/peers/(\.|/|)" +color brightwhite "user.*$" +color brightyellow "user" +color brightyellow start="\"" end="\"" +color yellow "lcp\-(echo\-(interval|failure)|max\-configure|restart)" +color yellow "(debug|sync|no(ccp|pcomp|accomp)|deflate|bsdcomp|usepeerdns|pty)" +color cyan "(lock|defaultroute|noipdefault|noauth|holdoff|maxfail|persist|asyncmap|detach|updetach|cdtrcts)" +color brightwhite "[0-9]" +color magenta "(\@|\,|\.)" +color green "#.*$" + +syntax "dhcpconf" "dhcpd.conf$" +icolor brightgreen "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*|ad\-hoc|interim" +color cyan "(authoritative|ddns\-update\-style|subnet|host|log\-facility)" +color brightblue "(netmask|routers|option|(netbios|domain)-nam(e|e-servers)|(default|max)-lease-time)|range|broadcast\-address|subnet-mask" +color brightyellow start="\"" end="\"" +color yellow "(hardware|ethernet|fixed\-address)" +color brightblack "\:|\;|\{|\})"" +color green "#.*$" + +syntax "hibernateconf" "/etc/hibernate/common.conf$" +color magenta "^[[:space:]]*[.A-Z]*" +color brightwhite start="'" end="'" +color brightgreen "yes" +color brightred "no" +color brightcyan "auto" +color green "#.*$" +color brightcyan "##.*$" +color yellow "###.*$" +color cyan "####.*$" + +syntax "nsswitch" "nsswitch.conf$" +icolor cyan "^[[:space:]]*[.0-9A-Z_]*:" +color magenta "\:" +color green "#.*$" + +syntax "sane" "sane.d/(\.|/|)" +color brightgreen "(scsi|usb|parport|auto)" +color brightred "option" +color yellow "(override|vendor|model)" +color cyan "/.*$" +color green "#.*$" + +syntax "syslogconf" "syslog.conf$" +icolor cyan "(\*|\;|\.|\,|\\)" +color magenta "/.*$" +color brightblue "-.*$" +color brightwhite "\=" +color green "#.*$" + +## these colors need to change... +syntax "udevrules" "\.rules$" +color brightwhite "[0-9]" +color brightblack "(ACTION|SUBSYSTEM|DEVPATH|OPTIONS|WAIT_FOR_SYSFS|ENV|KERNEL|NAME|MODE|GROUP|SYMLINK|DRIVERS|PROGRAM|RUN)" +color brightblack "(GOTO|IMPORT|ATTRS|SUBSYSTEMS|DVB|IR|BUS|SYSFS|ATTR|LABEL)" +color yellow "(add|net|scsi|drivers|module|address|bus|devices|ioerr_cnt|ignore_device|svga|video|tt(y(S|USB)|y|s)|last_rule)" +color yellow "(pnp|(au|ra)dio|tape|disk|snd|microcode|f(b|d|loppy|irmware)|usb|lp|kbd|parport|block|ide|misc|netlink|input)" +color yellow "(mouse|event|joystick|psmouse|atkbd|spkr|pcspkr|ir|dvb|persistent|storage|end|scanner|sound|dialout|console)" +color yellow "(cdrom|cdrw|dvd|dvdrw|isdn|pty|vcs|vcsa|ippp|dcbri|ircomm|capi|card|nvidia|rtc|agpgart|psaux|ptmx|sd|dasd|)" +color yellow "(ataraid|cciss|ida|rd|3dfx|control|hw|pcm|midi|timer|seq|cpu|msr|dm|i2c|mice|js|ts|loop|md|uinput|inotify|aoe)" +color brightyellow "(ID_(SERIAL|PATH|CLASS|EDD|CDROM|CDROM_(DVD|DVD_R|CD_RW))|program|parent|removable|GENERATED|COMMENT)" +color brightyellow "(id(Vendor|Product)|PHYSDEVBUS|(UDEV|UDEVD)_EVENT|INTERFACE_NEW|MODALIAS|modalias|alias|name)" +color brightred "(\%(k|r|c|n))" +color blue "(\;|\.|\"|\,)" +color brightblue "(\=|\*|\?)" +color green "#.*$" + +syntax "mailalias" "/etc/mail/aliases$" +icolor brightblue "^[[:space:]]*[.0-9A-Z_]*:" +icolor brightblue "^[[:space:]]*[.0-9A-Z_]*\-[.0-9A-Z_]*:" +color yellow "(\/.*$|root)" +color green "#.*$" + +syntax "wifiradar" "wifi-radar.conf$" +color brightwhite "[0-9]" +color yellow "((f|F)alse|eth[.0-9])|yes|no|[[:space:]]auto|ssid" +color brightgreen start="\[" end="\]" +color green "#.*$" + +syntax "irssi" "irssi.conf$" +icolor brightwhite "(^[[:space:]]*[.0-9A-Z_]*[[:space:]]=|address|name|chatnet|port|autojoin)" +color brightblue ""(\\.|[^\"])*"" +color yellow "(\{|\}|\;)" +color brightblack "\=" +color brightgreen "(Y|y)es|[0-9]" +color brightred "No" +color blue "\"" +color cyan "(servers|chatnets|channels|aliases|statusbar)" +color green "#.*$" + +syntax "proftpd" "proftpd.conf$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightyellow "ServerType|DefaultServer|ServerIdent|Port[[:space:]]|Umask|MaxInstances|User|Group" +color yellow "(UserAlias|UseFtpUsers)" +color brightgreen "([[:space:]]on|[0-9]|AllowAll)" +color brightred "(off|DenyAll)" +icolor cyan start="<" end=">" +icolor cyan start=""" end=""" +color cyan "xinetd|inetd|standalone" +color green "#.*$" + +syntax "xinetd" "xinetd.conf$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightgreen "([0-9]|yes)" +color brightred "(off|no)" +color magenta "defaults" +color brightblack "=" +color brightyellow "(\{|\})" +color cyan "/.*$" +color green "#.*$" + +syntax "xinetd.d" "xinetd.d/(\.|/|)" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightgreen "([0-9]|yes)" +color brightred "(off|[[:space:]]no)" +color brightblack "=" +color brightyellow "(\{|\})" +color cyan "/.*$" +color green "#.*$" + +syntax "localegen" "locale(.gen|s.build)" +color cyan "ISO.*$" +color yellow "UTF.*$" +color green "#.*$" + +syntax "clamd" "clamd.conf$" +color brightblack "[0-9]M" +color brightwhite "[0-9]" +color yellow "^[[:space:]]*[.0-9A-Z_]*" +color cyan "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color green "#.*$" + +syntax "grcconf" "grc.conf$" +color cyan "conf\..*$" +color yellow "\(.*$|\\.*$" +color green "#.*$" + +syntax "freshclamconf" "freshclam.conf$" +icolor brightcyan "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z_]*" +color cyan "\/.*$|[0-9]" +icolor yellow "^[[:space:]]*[.A-Z]*" +color green "#.*$" + +syntax "colorlightbg" "colordiffrc-lightbg$" +color brightblue "=.*$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color brightblack "=" +color green "#.*$" + +syntax "etc-limits" "limits$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color green "#.*$" + +syntax "screenrc" "screenrc$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color blue ""(\\.|[^\"])*"" +color brightwhite "[0-9]" +color red "[[:space:]]off" +color brightgreen "[[:space:]]on" +color magenta "'.*$" +color magenta "[A-Z0-9\_]+=" +color green "#.*$" + +syntax "fdparm" "fdprm$" +icolor brightgreen "^[[:space:]]*[0-9\/a-z]*" +color green "#.*$" + +syntax "securetty" "securetty$" +color cyan "console" +color brightwhite "[0-9]" +color red "vc" +color brightgreen "tt(y|yS|s)" +color green "#.*$" + +syntax "logindefs" "login.defs" + +icolor yellow "^[[:space:]]*[0-9\/a-z_]*" +color brightwhite "[0-9]" +color brightred "no" +color brightgreen "yes" +color green "#.*$" + +syntax "mysql" "my.cnf" +icolor yellow "^[[:space:]]*[0-9\/a-z_-]*" +color cyan start="\[" end="\]" +color green "#.*$" + +syntax "manconf" "man.conf$" +icolor yellow "^[[:space:]]*[.A-Z_0-9]*" +color brightgreen "/.*$" +color green "#.*$" + +syntax "sshdconf" "sshd_config$" +icolor yellow "^[[:space:]]*[.A-Z_0-9]*" +color brightwhite "[0-9]" +color brightblue "/.*$" +color brightred "no" +color brightgreen "yes" +color green "#.*$" + +#these look stupid if you ask me, but hey do better :P +syntax "protocols" "protocols$" +icolor brightgreen "[0-9][[:space:]][[:space:]]*[.A-Z0-9-]*" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9]" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9]" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9][.0-9]" +icolor yellow "^[[:space:]]*[.A-Z0-9-]*" +color green "#.*$" diff --git a/.nano/etcxml.nanorc b/.nano/etcxml.nanorc new file mode 100644 index 0000000..240e01a --- /dev/null +++ b/.nano/etcxml.nanorc @@ -0,0 +1,29 @@ +############################################################################## +# +# Syntax highlighting for XML files (/etc/fonts/*) +# +# Author: Josef 'Jupp' Schugt, jupp(a)rubyforge.org +# License: GPL 2 or later +# +# Version: 2004-02-25 +# +############################################################################## + +syntax "etcxml" "/etc/fonts/(\.|/|)" "/etc/xdg/(\.|/|)" +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" + +syntax "etcxml2" "gentoorc$" +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" + diff --git a/.nano/gentoo.nanorc b/.nano/gentoo.nanorc new file mode 100644 index 0000000..6e3470b --- /dev/null +++ b/.nano/gentoo.nanorc @@ -0,0 +1,50 @@ +## Here is an example for Gentoo ebuilds/eclasses +## +syntax "ebuild" "\.e(build|class)$" +## All the standard portage functions +color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" +## Highlight bash related syntax +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while|continue|break)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-(e|d|f|r|g|u|w|x|L)\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +## Highlight variables ... official portage ones in red, all others in bright red +color brightred "\$\{?[a-zA-Z_0-9]+\}?" +color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>" +color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\" "\" "\" +## Highlight portage commands +color magenta "\ [!a-zA-Z0-9_+ -]*" "inherit.*" +color brightblue "\" +color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" "\" +color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color brightblue "\" "\" +color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" +color brightblue "\<(|doc|ins|exe)into\>" "\" "\<(exe|ins|dir)opts\>" +## Highlight common commands used in ebuilds +color blue "\" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" +## Highlight comments (doesnt work that well) +color yellow "#.*$" +## Highlight strings (doesnt work that well) +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" +## Trailing space is bad! +color ,green "[[:space:]]+$" + +## Here is an example for Portage control files +## +syntax "/etc/portage" "\.(keywords|mask|unmask|use)$" +## Base text: +color green "^.+$" +## Use flags: +color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+" +color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+" +## Likely version numbers: +color magenta "-[[:digit:]].*([[:space:]]|$)" +## Accepted arches: +color white "[~-]?\<(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd)\>" +color white "[[:space:]][~-]?\*" +## Categories: +color cyan "^[[:space:]]*.*/" +## Masking regulators: +color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)" +## Comments: +color yellow "#.*$" diff --git a/.nano/groff.nanorc b/.nano/groff.nanorc new file mode 100644 index 0000000..02b82b8 --- /dev/null +++ b/.nano/groff.nanorc @@ -0,0 +1,24 @@ +## Here is an example for groff. +## +syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." +## The argument of .ds or .nr +color cyan "^\.(ds|nr) [^[[:space:]]]*" +## Single character escapes +color brightmagenta "\\." +## Highlight the argument of \f or \s in the same color +color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" +## Newlines +color cyan "(\\|\\\\)n(.|\(..)" +color cyan start="(\\|\\\\)n\[" end="]" +## Requests +color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +## Comments +color yellow "^\.\\".*$" +## Strings +color green "(\\|\\\\)\*(.|\(..)" +color green start="(\\|\\\\)\*\[" end="]" +## Characters +color brightred "\\\(.." +color brightred start="\\\[" end="]" +## Macro arguments +color brightcyan "\\\\\$[1-9]" diff --git a/.nano/havp.nanorc b/.nano/havp.nanorc new file mode 100644 index 0000000..8c5cb9d --- /dev/null +++ b/.nano/havp.nanorc @@ -0,0 +1,10 @@ + +syntax "havp" "havp.config$" +color brightred "REMOVETHISLINE" +color red "(deleteme|false)" +color brightgreen "true" +color brightwhite "[0-9]" +color yellow "\ \/.*$" +color brightyellow "--[a-z]*" +color cyan "^[[:space:]]*[.A-Z_0-9]*" +color green "#.*$" diff --git a/.nano/html.nanorc b/.nano/html.nanorc new file mode 100644 index 0000000..d31467d --- /dev/null +++ b/.nano/html.nanorc @@ -0,0 +1,5 @@ +## Here is a short example for HTML. +## +syntax "html" "\.html$" +color blue start="<" end=">" +color red "&[^;[[:space:]]]*;" diff --git a/.nano/info.nanorc b/.nano/info.nanorc new file mode 100644 index 0000000..1899196 --- /dev/null +++ b/.nano/info.nanorc @@ -0,0 +1,18 @@ +## *.Info file syntax +## +syntax "info" "Info.txt$" +color green "[0-9]" +color brightblue "\<(video|codec|bitrate|width|height|General|FileSize|Format|OveralBitRate|PlayTime)\>" +color brightblue "\<(Video|Codec|Bitrate|BitRate|Width|Height|AspectRatio|FrameRate|Bits|SamplingRate)\>" +color brightblue "\<(audio|channel|V(i|I)DEO|CODEC|FORMAT|B(I|i)TRATE|METHOD|R(I|i)P|AUD(I|i)O|RESOLUT(I|i)ON|GENRE)\>" +color brightblue "\<(Audio|Channel|Sound|ASPECT|RAT(i|I)O|MOV(I|i)E|S(i|I)ZE|RUNT(I|i)ME)\>" +color magenta "Movie.*$" +color blue "\<(KHz|kHz|Kbps|fps|MB|KB|channels|MiB|min|kbit\/s|Min)\>" +color brightyellow "\<(DivX|XviD|MPEG\-4|AAC\ LC|H\.264|LAME|NTSC|MPEG1|AVI)\>" +color brightblack "\=" +icolor brightcyan "[.0-9A-Z_]*:" +icolor brightyellow "http:.*$" + + + + diff --git a/.nano/initng.nanorc b/.nano/initng.nanorc new file mode 100644 index 0000000..ecc7f43 --- /dev/null +++ b/.nano/initng.nanorc @@ -0,0 +1,22 @@ +## InitNG syntax +## +syntax "initngscripts" "\.i$" +icolor brightgreen "^[0-9A-Z_]+\(\)" +color magenta "(daemon|virtual)" +color brightwhite "virtual/.*$" +color brightblack "daemon/.*$" +color yellow "(need|use|respawn|exec\ daemon|also_stop)" +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" + +syntax "initng-settings" "system.virtual$" "\.runlevel$" +color magenta "daemon" +color cyan "system" +color blue "net" +color red "debug" diff --git a/.nano/initscript.nanorc b/.nano/initscript.nanorc new file mode 100644 index 0000000..9fc55f5 --- /dev/null +++ b/.nano/initscript.nanorc @@ -0,0 +1,28 @@ +## initscripts syntax (stolen from gentoo.nanorc) ;) +## +syntax "initscript" "/etc/init.d/(\.|/|)" +## All the standard portage functions +#color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" +## Highlight bash related syntax +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-(e|d|f|r|g|u|w|x|L)\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +## Highlight variables ... official portage ones in red, all others in bright red +color brightred "\$\{?[a-zA-Z_0-9]+\}?" +color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>" +color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\" "\" "\" +## Highlight portage commands +color magenta "\ [!a-zA-Z0-9_+ -]*" "inherit.*" +color brightblue "\" +color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" "\" +color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color brightblue "\" "\" +color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" +color brightblue "\<(|doc|ins|exe)into\>" "\" "\<(exe|ins|dir)opts\>" +## Highlight common commands used in ebuilds +color blue "\" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" +## Highlight comments (doesnt work that well) +color yellow "#.*$" +## Highlight strings (doesnt work that well) +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" diff --git a/.nano/java.nanorc b/.nano/java.nanorc new file mode 100644 index 0000000..a432f81 --- /dev/null +++ b/.nano/java.nanorc @@ -0,0 +1,12 @@ +## Here is an example for Java. +## +syntax "java" "\.java$" +color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" +color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" +color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" +color red ""[^"]*"" +color yellow "\<(true|false|null)\>" +color blue "//.*" +color blue start="/\*" end="\*/" +color brightblue start="/\*\*" end="\*/" +color ,green "[[:space:]]+$" diff --git a/.nano/js.nanorc b/.nano/js.nanorc new file mode 100644 index 0000000..ed2b8f2 --- /dev/null +++ b/.nano/js.nanorc @@ -0,0 +1,38 @@ +### all *js files ( e.g. Firefox user.js, prefs.js ) + +## Old version + +#syntax "jsfiles" "(\.|/|)js$" +#color green "//.*$" start="\/\*" end="\*\/" +#color blue "'(\\.|[^'])*'" +#color red ""(\\.|[^\"])*"" +#color brightgreen "\<(true)\>" +#color brightred "\<(false)\>" "http\:\/\/.*$" +#color brightmagenta "[0-9](\\.|[^\"])*)" + +## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting + +syntax "JavaScript" "\.(js)$" +## Default +color white "^.+$" +## Decimal, cotal and hexadecimal numbers +color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" +## Floating point number with at least one digit before decimal point +color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" +## Keywords +color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" +color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" +color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" +## Type specifiers +color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color red "\<(Number|Object|RegExp|String)\>" +color red "\<(true|false)\>" +## String +color brightyellow "L?\"(\\"|[^"])*\"" +color brightyellow "L?'(\'|[^'])*'" +## Escapes +color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" +## Comments +color magenta start="/\*" end="\*/" +color magenta "//.*$" diff --git a/.nano/log-stuff.nanorc b/.nano/log-stuff.nanorc new file mode 100644 index 0000000..7a1c036 --- /dev/null +++ b/.nano/log-stuff.nanorc @@ -0,0 +1,45 @@ +## to have logs interpreted for you in just about 1000 ways use log analyzers +## this only helps in viewing them directly + +## TODO +# getdelta, others... + +syntax "logs" "midentd.log$" "mldonkey.log$" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]" +color cyan "\].*$" +color brightblack start="\[" end="\]" + +syntax "emergelog" "emerge.log$" +color brightwhite "[0-9]" +color yellow ">>>.*$" +color cyan "\*\*\*.*$" +color magenta "\:\:\:.*$" +color green start="\(" end="\)" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]" +icolor red "^[[:space:]]*[.0-9A-Z_]*:" + +syntax "ntplog" "ntp.log$" +icolor red "^[[:space:]]*[.0-9A-Z_]*:" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color cyan "\].*$" +color brightblack start="\[" end="\]" + +syntax "cronlog" "cron.log$" +color cyan "/.*$" +color brightblue "[0-9][0-9]\-[.A-Z_]*\-[0-9][0-9]" +color brightwhite "[0-9][0-9]\:[0-9][0-9]" +color magenta "(FILE|USER)" +color yellow "(pid|cmd)" + +syntax "miniserv" "miniserv.log$" "miniserv.error$" +color cyan "Bad\ Request.*$" +color brightred "Access\ denied.*$" +color brightwhite "[0-9]" +color green "(POST|GET|HTTP)" +color brightred "\"" +color yellow "(\:|\+|/|\.|\-)" +color green ".*started$" diff --git a/.nano/maincf.nanorc b/.nano/maincf.nanorc new file mode 100644 index 0000000..c15e5eb --- /dev/null +++ b/.nano/maincf.nanorc @@ -0,0 +1,8 @@ +### all *cf files (e.g. main.cf, Postfix ) +syntax "maincf" "(\.|/|)cf$" +color magenta "\=.*$" +color green "#.*$" +color cyan "[A-Z0-9\_]+=" +color blue ""(\\.|[^\"])*"" +color red "\@" + diff --git a/.nano/makefile.nanorc b/.nano/makefile.nanorc new file mode 100644 index 0000000..ae5cbf8 --- /dev/null +++ b/.nano/makefile.nanorc @@ -0,0 +1,33 @@ +## my own + +#syntax "makefile" "(m|M)akefile$" "\.mak$" +#icolor yellow start="^[[:space:]]*[.0-9A-Z_]" end="\=[[:space:]]|\:|\:\:|\/" +#color brightgreen "((C|CXX|LD)FLAGS)|LIBADD|LIBS|include" +#icolor cyan start="\{" end="\}" +#icolor cyan start="\(" end="\)" +#color brightyellow "\$" +#color green "#.*$" + +## taken form http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting + +#syntax "makefile" "^Makefile\.?" +#color red "[:=]" +#color magenta "\<(if|ifeq|else|endif)\>" +#color blue "\$\{.*}" +#color brightblue "\w+:" +#color green "#.*$" + +## two of the above compiled +syntax "makefile" "(m|M)akefile$" "\.mak$" +#icolor yellow start="^[[:space:]]*[.0-9A-Z_]" end="\=[[:space:]]|\:|\:\:|\/" +color brightgreen "((C|CXX|LD)FLAGS)|LIBADD|LIBS|include" +icolor cyan start="\{" end="\}" +icolor cyan start="\(" end="\)" +color brightyellow "\$" +color green "#.*$" + +color red "[:=]" +color magenta "\<(if|ifeq|else|endif)\>" +color blue "\$\{.*}" +color brightblue "\w+:" +color green "#.*$" diff --git a/.nano/man.nanorc b/.nano/man.nanorc new file mode 100644 index 0000000..85efd26 --- /dev/null +++ b/.nano/man.nanorc @@ -0,0 +1,9 @@ +## Here is an example for manpages. +## +syntax "man" "\.[1-9]x?$" +color green "\.(S|T)H.*$" +color brightgreen "\.(S|T)H" "\.TP" +color brightred "\.(BR?|I[PR]?).*$" +color brightblue "\.(BR?|I[PR]?|PP)" +color brightwhite "\\f[BIPR]" +color yellow "\.(br|DS|RS|RE|PD)" diff --git a/.nano/mimetype.nanorc b/.nano/mimetype.nanorc new file mode 100644 index 0000000..b8e0b42 --- /dev/null +++ b/.nano/mimetype.nanorc @@ -0,0 +1,6 @@ +syntax "mimetype" "mime.types" +icolor cyan "[.A-Z_]*/" +color brightwhite "/" +color green "[[:space:]].*$" +## comments +color green "#.*$" diff --git a/.nano/mutt.nanorc b/.nano/mutt.nanorc new file mode 100644 index 0000000..2e68399 --- /dev/null +++ b/.nano/mutt.nanorc @@ -0,0 +1,4 @@ +## Here is an example for quoted emails (under e.g. mutt). +## +syntax "mutt" +color green "^>.*" diff --git a/.nano/named.nanorc b/.nano/named.nanorc new file mode 100644 index 0000000..c10d53c --- /dev/null +++ b/.nano/named.nanorc @@ -0,0 +1,14 @@ +## named.conf syntax +## +syntax "named" "named.conf" + +color brightcyan "(\{|\}|\;)" +color brightwhite "[0-9]" +color magenta "(options|zone|IN)" +color yellow "(type|file|allow\-update|notify)" +color cyan "(directory|statistics\-file|forward\ first|forwarders|listen\-on\-v6|listen\-on|allow\-query)" +color cyan "(query\-source\ address|pid\-file)" +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" +## comments +color green "#.*$" +color green "//.*$" diff --git a/.nano/nanorc.nanorc b/.nano/nanorc.nanorc new file mode 100644 index 0000000..f63d770 --- /dev/null +++ b/.nano/nanorc.nanorc @@ -0,0 +1,16 @@ +## Here is an example for nanorc files. +## +syntax "nanorc" "\.?nanorc$" +## Possible errors and parameters +icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" +## Keywords +icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace|wordbounds)\>" +icolor green "^[[:space:]]*(set|unset|include|syntax)\>" +## Colors +icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" +icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" +## Strings +icolor white ""(\\.|[^"])*"" +## Comments +icolor brightblue "^[[:space:]]*#.*$" +icolor cyan "^[[:space:]]*##.*$" diff --git a/.nano/nscd.nanorc b/.nano/nscd.nanorc new file mode 100644 index 0000000..f18e96d --- /dev/null +++ b/.nano/nscd.nanorc @@ -0,0 +1,5 @@ +syntax "nscd" "nscd.conf$" +color cyan "(passwd|group|hosts)" +color yellow "([0-9]|yes)" +color green "#.*$" + diff --git a/.nano/others.nanorc b/.nano/others.nanorc new file mode 100644 index 0000000..e7d4b84 --- /dev/null +++ b/.nano/others.nanorc @@ -0,0 +1,112 @@ +syntax "infile" ".in$" ".am$" +icolor brightgreen start="\{" end="\}" +color magenta "(if[[:space:]]|endif|else)" +color yellow "^[[:space:]]*[.0-9A-Z_](\\.|[^\"])*(\=|\:)" +color cyan "\((\\.|[^\"])*\)" +color cyan "@(\\.|[^\"])*@" +color brightblack "(\-[.a-z]*|\HAVE[.a-zA-Z_]*)" +color yellow "\/" +color brightblue ""(\\.|[^\"])*"" +color brightyellow "(\$|dnl.*$)" +color green "#.*$" + + +syntax "spec" ".spec$" +color brightwhite "[0-9]" +color cyan "stub" +color yellow "pascal|stdcall|varargs|cdecl" +color brightyellow "\((\\.|[^\"])*\)" +color brightgreen "\@" +color green "#.*$" + +syntax "configurelog" "config.log$" +color cyan "(\:.*$|\=.*$)" +color yellow ""(\\.|[^\"])*"" +color magenta "[.0-9A-Z_a-z]*:" +color yellow "[.A-Z_a-z]*:[0-9]*:" +color cyan start="\/\*" end="\*\/" +color brightgreen "[[:space:]]yes" +color brightred "[[:space:]]no" +color green "#.*$" +color brightgreen "\|.*$" + +syntax "texi" ".texi$" +color brightcyan "\((\\.|[^\"])*\)" +color yellow "(\{|\})" +color brightblue "\$" +color brightblack "\[(\\.|[^\"])*\]" +color brightyellow "@[.a-zA-Z_]*" +color cyan "^[[:space:]]*[.a-zA-Z_]*\:" +color brightred "@c[.a-zA-Z_]*" +color green "#.*$" + + +syntax "desktop" "\.desktop$" +color brightblue "\[(\\.|[^\"])*\]" +color yellow "=.*$" +color brightgreen "\=" + +syntax "lua" "\.lua$" +color brightwhite "[0-9]" +color cyan "local.*$" +color brightblack "\{|\}" +color brightgreen "\=" +color red "\[|\]" +color yellow "\"(\\.|[^\"])*\"" +color green "\-\-.*$" + +syntax "m3u" "\.m3u$" +color green "#.*$" +color brightgreen "http.*$" +color yellow "\/" +color cyan "[.0-9a-zA-Z_-]*\.mp3" + +syntax "bat" "\.bat$" +color yellow "%(\\.|[^\"])*%" +color brightyellow "set[[:space:]]" +color brightgreen "\=" +color green "REM.*$" + +syntax "authors" "AUTHORS$" +color brightgreen "((T|t)ranslators|(D|d)ocumenters|(A|a)uthors|(C|c)ontributors)" +color brightyellow "<(\\.|[^\"])*>" +color yellow "\@" +color cyan "\*.*$" +color brightcyan "\:" +color brightblue "\((\\.|[^\"])*\)" +color green "#.*$" + +syntax "kconfig" "Kconfig$" "Kconfig.(cpu|debug)$" +color brightyellow "(<(\\.|[^\"])*>|\!)" +color brightyellow "\((\\.|[^\"])*\)" +color blue "source.*$" +color brightgreen "(ult[[:space:]]y|\"(\\.|[^\"])*\")" +color brightblue "ult[[:space:]]m" +color brightred "ult[[:space:]]n" +color magenta "default" +color cyan "config.*$" +color yellow "config|menu|(main|end)menu|choice|endchoice" +color brightcyan "(^[[:space:]](bool|def_bool|tristate|depends[[:space:]]on|select|prompt|range|help|string|int|hex))" +color brightmagenta "(\||\&)" +color brightred "\"off\"" +color green "#.*$" + +syntax "la_file" "\.la$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*=" +color white "\=" +color brightgreen "yes" +color brightred "no" +color brightwhite "[0-9]" +color brightyellow "'(\\.|[^\"])*'" +color green "#.*$" + +syntax "contents" "CONTENTS$" +color brightwhite "[[:space:]][a-z0-9].*$" +color green "dir[[:space:]].*$" +icolor cyan "^[[:space:]]*[.0-9A-Z_]*" +color brightgreen "/usr/shar(e|e/(doc|e/man))/|/include/|/lib/|/usr/" +color yellow "/etc/" +color brightblue "/usr/bin(/|)|/usr/sbin|/bin|/sbin|/etc/init.d/" +color brightyellow "/etc/conf.d/" +color red "/va(r/|r/cache|r/lib/)" +color brightred "/var/cache/" diff --git a/.nano/paludis.nanorc b/.nano/paludis.nanorc new file mode 100644 index 0000000..1f9ee6e --- /dev/null +++ b/.nano/paludis.nanorc @@ -0,0 +1,130 @@ +## Here is an example for Paludis control files +## + +syntax "bashrc" "bashrc$" +## Base text: +color brightblack "^.+$" +## sh syntax: +color brightwhite "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +icolor magenta "(.+\)|\[.+\])" +color brightwhite "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|==|&|\|)" +color brightwhite "-[Ldefgruwx]\>" +color brightwhite "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color ,green "[[:space:]]+$" +color green "\".*\"" +color brightwhite "case[[:space:]]\".+\"" +color brightgreen "\$\{.+\}" +## Package name: +color brightmagenta "\$\{PN\}" +## Keywords: +color brightwhite "(CHOST|CFLAGS|CXXFLAGS|MAKEOPTS)=" +color white "(SKIP_FUNCTIONS|PATH|CCACHE_SIZE|CCACHE_DIR|PALUDIS_USE_SAFE_RESUME)=" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "license-use" "(licenses|use)\.conf$" +## Base text: +color brightblack "^.+$" +## Package name: +color brightblue "/.*[[:space:]]" +## Categories: +color cyan "^.*/" +## Version number: +color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)" +## Repository name: +color magenta "::.*[[:space:]]" +## licenses and use: +color green "[[:space:]][^[:space:]]*" +color red "[[:space:]]-[^[:space:]]*" +## Masking regulators: +color brightred "^(<|<=|=|>=|>)*" +color brightwhite "^(<|<=|=|>=|>)" +## Additional variables: +color brightgreen "(ALSA_CARDS|INPUT_DEVICES|LANGUAGE|LINGUAS|VIDEO_CARDS|PALUDIS_HOOKS):?" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "keywords" "keywords\.conf$" +## Base text: +color brightblack "^.+$" +## Package name: +color brightblue "/.*[[:space:]]" +## Categories: +color cyan "^.*/" +## Version number: +color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)" +## Repository name: +color magenta "::.*[[:space:]]" +## Accepted arches: +color green "[[:space:]][~]?(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd|\*)" +color red "-\*" +## Masking regulators: +color brightred "^(<|<=|=|>=|>)*" +color brightwhite "^(<|<=|=|>=|>)" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "mask-unmask" "package_(mask|unmask)\.conf$" +## Base text: +color brightblack "^.+$" +## Package name: +color brightblue "/.*" +## Categories: +color cyan "^.*/" +## Version number: +color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*($|::)" +## Repository name: +color magenta "::.*$" +## Masking regulators: +color brightred "^(<|<=|=|>=|>)*" +color brightwhite "^(<|<=|=|>=|>)" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "mirrors" "mirrors\.conf$" +## Base text: +color red "^.+$" +## Serwer name: +color brightwhite "^.*[[:space:]]" +## Adress +color brightblue "[[:space:]](ftp://|http://).*$" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" + +syntax "repositories" "repo" +## Base text: +color brightblack "^.+$" +## Parameters: +color magenta "=[[:space:]].+$" +color brightwhite "^.*[[:space:]]=[[:space:]]" +## Path: +color green "/.+" +color brightgreen "\$\{.*\}" +## Adress: +color brightblue "(svn\+https|svn\+http|http|rsync)://.*$" +## Mark lines with spaces at end of it: +color brightred ".*[[:space:]]$" +## Comments: +color brightred "#.*$" +color yellow "^#.*$" +color brightyellow "^##[[:space:]].*$" diff --git a/.nano/passwd.nanorc b/.nano/passwd.nanorc new file mode 100644 index 0000000..7e194cc --- /dev/null +++ b/.nano/passwd.nanorc @@ -0,0 +1,12 @@ +### etc/passwd +syntax "passwd" "(\.|/|)passwd$" "(\.|/|)shadow$" +color white ".*$" +color blue "\:.*$" +color yellow "\:*\:" +color cyan "/.*$" +color red "/bin/false" +color brightred "root" +color brightgreen "/bin/.*sh" +color white "[0-9]" +color magenta "\:\/.*\:" + diff --git a/.nano/patch.nanorc b/.nano/patch.nanorc new file mode 100644 index 0000000..a788b35 --- /dev/null +++ b/.nano/patch.nanorc @@ -0,0 +1,10 @@ +## Here is an example for patch files. +## +syntax "patch" "\.(patch|diff)$" +color brightgreen "^\+.*" +color green "^\+\+\+.*" +color brightblue "^ .*" +color brightred "^-.*" +color red "^---.*" +color brightyellow "^@@.*" +color magenta "^diff.*" diff --git a/.nano/perl.nanorc b/.nano/perl.nanorc new file mode 100644 index 0000000..7bca4cd --- /dev/null +++ b/.nano/perl.nanorc @@ -0,0 +1,11 @@ +## Here is an example for Perl. +## +syntax "perl" "\.p[lm]$" +color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" +color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" +icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)" +color yellow "".*"|qq\|.*\|" +color white "[sm]/.*/" +color white start="(^use| = new)" end=";" +color green "#.*" +color yellow start="<< 'STOP'" end="STOP" diff --git a/.nano/php.nanorc b/.nano/php.nanorc new file mode 100644 index 0000000..8ef495f --- /dev/null +++ b/.nano/php.nanorc @@ -0,0 +1,30 @@ +## Here is an example for PHP +## +syntax "php" "\.php[2345s~]?$" + +## php markings +color brightgreen "(<\?(php)?|\?>)" + +## functions +color white "\<[a-z_]*\(" + +## types +color green "\<(var|float|global|double|bool|char|int|enum|const)\>" + +## structure +color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>" + +## control flow +color magenta "\<(goto|continue|break|return)\>" + +## strings +color brightyellow "<[^= ]*>" ""(\.|[^"])*"" + +## comments +color brightblue "//.*" +color brightblue start="/\*" end="\*/" +#color blue start="<" end=">" +#color red "&[^;[[:space:]]]*;" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/.nano/php2.nanorc b/.nano/php2.nanorc new file mode 100644 index 0000000..3aafe25 --- /dev/null +++ b/.nano/php2.nanorc @@ -0,0 +1,12 @@ + +# PHP Syntax Highlighting +syntax "php2" "\.php[2345s~]?$" +color brightblue "(.*)\(" +color blue "\$[a-zA-Z_0-9$]*|[=!<>]" +color green "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s" +color green "[.,{}();]" +color red "('.*')|(\".*\")" +color brightyellow "(#.*|//.*)$" +color brightyellow start="/\*" end="\*/" +color brightblue "(<\?(php)?|\?>)" +color white start="\?>" end="<\?(php)?" diff --git a/.nano/po.nanorc b/.nano/po.nanorc new file mode 100644 index 0000000..97e9fd2 --- /dev/null +++ b/.nano/po.nanorc @@ -0,0 +1,19 @@ +## *.po file syntax +## +syntax "po" "\.po$" "\.pot$" +color brightblue "\<(msgid|msgstr)\>" +color brightred "\/" +color green "#.*$" +color red "\" +color yellow "\" +color yellow "\"" +color red "\"\"" +color brightyellow "\"\\n\"" +color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language\-Team|charset)\>" +color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>" +color yellow "\<(Copyright|(C))\>" +color yellow "[0-9]" +color brightyellow "\<(UTF|ISO|Windows|Mac|IBM)\>\-[0-9]" +color red "#~.*$" + + diff --git a/.nano/postgresql.nanorc b/.nano/postgresql.nanorc new file mode 100644 index 0000000..7647965 --- /dev/null +++ b/.nano/postgresql.nanorc @@ -0,0 +1,5 @@ +syntax "postgreSQL" "\.sql$" +icolor red "\<(A(LL|NALY(S|Z)E|ND|NY|RRAY|S|SC|SYMMETRIC|UTHORIZATION)|B(ETWEEN|INARY|OTH|Y)|C(ASE|AST|HECK|OLLATE|OLUMN|ONSTRAINT|REATE|ROSS|URRENT_(DATE|ROLE|TIME|TIMESTAMP|USER))|D(EFAULT|EFERRABLE|ESC|ISTINCT|O|ROP)|E(LSE|ND|XCEPT)|F(ALSE|OR(EIGN)?|REEZE|ROM|ULL)|GRANT|GROUP|HAVING|I(LIKE|N(ITIALLY|NER|TERSECT|TO)?|S|SNULL)|JOIN|L(EADING|EFT|IKE|IMIT|OCALTIME(STAMP)?)|N(ATURAL|EW|OT(NULL)?|ULL)|O(FF(SET)?|LD|N|NLY|R|RDER|UTER|VERLAPS)|PLACING|PRIMARY|REFERENCES|RIGHT|S(ELECT|ESSION_USER|IMILAR|OME|YMMETRIC)|T(ABLE|HEN|O|RAILING|RUE)|UNION|UNIQUE|USER|USING|VE(IW|RBOSE)|WHEN|WHERE|)\>" +color magenta "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color yellow "'[^']*'" +color green "--.*$" diff --git a/.nano/pov.nanorc b/.nano/pov.nanorc new file mode 100644 index 0000000..298b201 --- /dev/null +++ b/.nano/pov.nanorc @@ -0,0 +1,15 @@ +## Here is an example for POV-Ray. +## +syntax "pov" "\.(pov|POV|povray|POVRAY)$" +color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" +color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" +color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" +color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" +color brightred "^\<(texture)\>" +color brightred "\<(light_source|background)\>" +color brightred "\<(fog|object|camera)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color brightmagenta "\<(union|group|subgroup)\>" +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/" diff --git a/.nano/privoxy.nanorc b/.nano/privoxy.nanorc new file mode 100644 index 0000000..c4d16ae --- /dev/null +++ b/.nano/privoxy.nanorc @@ -0,0 +1,41 @@ +syntax "privoxycfg" "(\.|/|)privoxy/config$" +color brightwhite "[0-9]" +color cyan "^[[:space:]]*[.a-z0-9-]*" +color brightgreen "\ 1" +color brightwhite "1[0-9]" +color brightblue "\ \/.*$" +color brightred "\ 0" +color magenta "http:.*$" + +# important config settings without which it may not work the way You want it to :) +color yellow "(listen-address|forward|accept-intercepted-requests)" + +# comments +color green "#.*$" + +####################################### +syntax "privoxyaction" "(\.|/|).action$" + +color brightyellow start="\{" end="\}" +color cyan "(\+|\-)(add-header|block|client-header-(filter|tagger)|content-type-overwrite|crunch-(client-header|if-none-match|server-header))" +color cyan "(\+|\-)(deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document)" +color cyan "(\+|\-)(hide-(accept-language|content-disposition|forwarded-for-headers|from-header|if-modified-since|refe(r|rr)er|user-agent))" +color cyan "(\+|\-)(handle-as-image|inspect-jpegs|limit-connect|overwrite-last-modified|prevent-compression|server-header-(filter|tagger))" +color cyan "(\+|\-)(session-cookies-only|set-image-blocker|crunch-(outgoing|incoming)-cookies|kill-popups|redirect|send(-|-vanilla-)wafer)" + +color yellow "\{\{(settings|alias)\}\}" +# comments +color green "#.*$" +color brightwhite "##.*$" +color brightgreen "#-.*$" + +####################################### +#syntax "privoxytemplate" "/etc/privoxy/templates/(\.|/|)" +#color white "^.+$" +#color green start="<" end=">" +#color cyan "<[^> ]+" +#color cyan ">" +#color yellow start="" +#color yellow start="" +#color red "&[^;]*;" + diff --git a/.nano/profile.nanorc b/.nano/profile.nanorc new file mode 100644 index 0000000..066da80 --- /dev/null +++ b/.nano/profile.nanorc @@ -0,0 +1,10 @@ +### all *profile files ( ~/.bash_profile, /etc/profile) +syntax "profiles" "(\.|/|)profile$" +color red "'(\\.|[^'])*'" +color blue ""(\\.|[^\"])*"" +color magenta "[a-zA-Z0-9\_]+=" +color magenta "\<(sudo)\>" +color cyan "\<(export)\>" "\<(alias)\>" +color brightred "\<(umask)\>.*$" +color green "#.*$" + diff --git a/.nano/python.nanorc b/.nano/python.nanorc new file mode 100644 index 0000000..fc0907a --- /dev/null +++ b/.nano/python.nanorc @@ -0,0 +1,9 @@ +## Here is an example for Python. +## +syntax "python" "\.py$" +icolor brightblue "def [0-9A-Z_]+" +color brightcyan "\<(and|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|return|try|while)\>" +color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" +color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''" +color brightred "#.*$" diff --git a/.nano/rcfiles-new.nanorc b/.nano/rcfiles-new.nanorc new file mode 100644 index 0000000..ee309bb --- /dev/null +++ b/.nano/rcfiles-new.nanorc @@ -0,0 +1,31 @@ +## this .rc is not meant for rcs in etc but those used in apps like wine +syntax "rc" "\.rc$" +color cyan start="\{" end="\}" +color brightgreen start="<" end=">" +color brightyellow "(\"(\\.|[^\"])*\"|[0-9])" +color green start="\/\*" end="\*\/" +color yellow "(#(define|include)|LANGUAGE|FONT)" + +### all *rc files ( e.g. .bashrc, inputrc, xtermcontrol .... ) +#syntax "rcfiles" "(\.|/|)rc$" "(\.|/|)control$" +syntax "rcfiles" "((.ba|ba|c|.c)sh|input|xinit|eix|(.w|w)minet)|gtk|rc$" +color red "'(\\.|[^'])*'" +color blue ""(\\.|[^\"])*"" +color magenta "[A-Z0-9\_]+=" +color magenta "\<(sudo)\>" +color cyan "\<(alias)\>" +color brightcyan "\<(export)\>" +color yellow "\<(shopt)\>" +color brightred "\<(umask)\>.*$" +color green "#.*$" + +## rc... +syntax "rc2" "(wop|wget)rc$" +color cyan "\=.*$" +color brightgreen start="<" end=">" +color brightyellow "[0-9]" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]\=" +color brightred "[[:space:]]off" +color brightgreen "[[:space:]]on" +color green "#.*$" + diff --git a/.nano/rcfiles.nanorc b/.nano/rcfiles.nanorc new file mode 100644 index 0000000..9a93e5a --- /dev/null +++ b/.nano/rcfiles.nanorc @@ -0,0 +1,11 @@ +### all *rc files ( e.g. .bashrc, inputrc, xtermcontrol .... ) +syntax "rcfiles" "\rc$" "(\.|/|)control$" +color red "'(\\.|[^'])*'" +color blue ""(\\.|[^\"])*"" +color magenta "[A-Z0-9\_]+=" +color magenta "\<(sudo)\>" +color cyan "\<(alias)\>" +color brightcyan "\<(export)\>" +color yellow "\<(shopt)\>" +color brightred "\<(umask)\>.*$" +color green "#.*$" diff --git a/.nano/rsync.nanorc b/.nano/rsync.nanorc new file mode 100644 index 0000000..9533757 --- /dev/null +++ b/.nano/rsync.nanorc @@ -0,0 +1,7 @@ +syntax "rsync" "rsyncd.conf$" +color cyan "(hosts|(u|g)id|pid\ file|use\ chroot|read\ only|address|max\ connections|motd\ file)" +color cyan "(log\ format|syslog\ facility|timeout)" +color yellow "(path|comment|exclude)" +color brightyellow start="\[" end="\]" +color green "#.*$" + diff --git a/.nano/ruby.nanorc b/.nano/ruby.nanorc new file mode 100644 index 0000000..a557287 --- /dev/null +++ b/.nano/ruby.nanorc @@ -0,0 +1,30 @@ +## Here is an example for Ruby. +## +syntax "ruby" "\.rb$" +## Asciibetical list of reserved words +color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" +## Constants +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +## Ruby "symbols" +icolor magenta "([ ]|^):[0-9A-Z_]+\>" +## Some unique things we want to stand out +color brightyellow "\<(__FILE__|__LINE__)\>" +## Regular expressions +color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +## Shell command expansion is in `backticks` or like %x{this}. These are +## "double-quotish" (to use a perlism). +color brightblue "`[^`]*`" "%x\{[^}]*\}" +## Strings, double-quoted +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +## Expression substitution. These go inside double-quoted strings, +## "like #{this}". +color brightgreen "#\{[^}]*\}" +## Strings, single-quoted +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +## Comments +color cyan "#[^{].*$" "#$" +color brightcyan "##[^{].*$" "##$" +## "Here" docs +color green start="<<-?'?EOT'?" end="^EOT" +## Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" diff --git a/.nano/sh.nanorc b/.nano/sh.nanorc new file mode 100644 index 0000000..f540f1b --- /dev/null +++ b/.nano/sh.nanorc @@ -0,0 +1,13 @@ +## Here is an example for Bourne shell scripts. +## +syntax "sh" "\.sh$" +icolor brightgreen "^[0-9A-Z_]+\(\)" +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color ,green "[[:space:]]+$" diff --git a/.nano/shlike.nanorc b/.nano/shlike.nanorc new file mode 100644 index 0000000..2370cbe --- /dev/null +++ b/.nano/shlike.nanorc @@ -0,0 +1,12 @@ +## Here is an example for Bourne shell scripts. +## +syntax "shlike" "\.(m4|sub|guess)$" "missing$" "configure\.ac$" "config\.(charset|rpath|status)$" "configure$" +icolor brightgreen "^[0-9A-Z_]+\(\)" +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" diff --git a/.nano/softcam.nanorc b/.nano/softcam.nanorc new file mode 100644 index 0000000..c1aad17 --- /dev/null +++ b/.nano/softcam.nanorc @@ -0,0 +1,10 @@ +syntax "softcam" "(S|s)oft(c|C)am.(K|k)ey$" +color yellow "(I|S|V|N|W|F)\ [0-9a-zA-Z]*\ 0[0-9A-F]" +color brightyellow "(I|S|V|N|W|F|B)\ [0-9a-zA-Z]*\ (M|X|E|N)(1|2)" +color brightgreen "B\ [0-9]*\:[0-9]*|:(H|V|L)" +color magenta "(05(0|1)(1|3|5))" +color red "(4(0|1)0(1|2))" +color brightred "4(8|9)01" +color brightblue "(2111|7101|a(4|5)01)" +color cyan "\;.*$" +color green "#.*$" diff --git a/.nano/sources_list.nanorc b/.nano/sources_list.nanorc new file mode 100644 index 0000000..e10235d --- /dev/null +++ b/.nano/sources_list.nanorc @@ -0,0 +1,18 @@ +## derived form http://milianw.de/code-snippets + +## syntax highlighting for /etc/apt/sources.list +syntax "apt/sources.list" "sources\.list(\.old|~)?$" +# component +color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+ .+$" +# distribution +color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+" +# URI +color brightgreen "(http|file|ftp):/[^ ]+" +# cdroms +# [^\]] does not work… +color brightgreen "cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/" +# deb / deb-src +color cyan "^deb" +color brightblue "^deb-src" +# comments +color brightyellow "#.*" diff --git a/.nano/tab.nanorc b/.nano/tab.nanorc new file mode 100644 index 0000000..68ae7b9 --- /dev/null +++ b/.nano/tab.nanorc @@ -0,0 +1,12 @@ +### all *tab files ( e.g. fstab, crontab, inittab ) +syntax "fstab" "(\.|/|)tab$" +color magenta "\<(none)\>.*$" "\<(wait)\>" "\<(respawn)\>" +color red "/dev/hd.*$" "\<(ctrlaltdel)\>" "\<(initdefault)\>" +color blue "/dev/sr.*$" "/dev/cd.*$" "\/sbin.*$" +color cyan "/dev/sd.*$" +color brightcyan "^.*(nfs|smbfs).*$" +color yellow "/dev/fd.*$" +color red "root" +color brightwhite "[0-9]" +color green "#.*$" + diff --git a/.nano/tcl.nanorc b/.nano/tcl.nanorc new file mode 100644 index 0000000..15526c1 --- /dev/null +++ b/.nano/tcl.nanorc @@ -0,0 +1,16 @@ +syntax "tcl" "\.tcl$" + +## Standard Tcl [info commands] +color green "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>" +## Basic Tcl sub commands. +color green "\<(array anymore|array donesearch|array exists|array get|array names|array nextelement|array set|array size|array startsearch|array statistics|array unset)\>" +color green "\<(string bytelength|string compare|string equal|string first|string index|string is|string last|string length|string map|string match|string range|string repeat|string replace|string to|string tolower|string totitle|string toupper|string trim|string trimleft|string trimright|string will|string wordend|string wordstart)\>" +## Extended TclX [info commands] +color green "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>" +## Syntax. +color brightblue "proc[[:space:]]" "(\{|\})" +color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color ,green "[[:space:]]+$" +color ,magenta "^([[:space:]]+|)#.*" diff --git a/.nano/tex.nanorc b/.nano/tex.nanorc new file mode 100644 index 0000000..fff8dd0 --- /dev/null +++ b/.nano/tex.nanorc @@ -0,0 +1,6 @@ +## Here is a short example for TeX files. +## +syntax "tex" "\.tex$" +icolor green "\\.|\\[A-Z]*" +color magenta "[{}]" +color blue "%.*" diff --git a/.nano/urls.nanorc b/.nano/urls.nanorc new file mode 100644 index 0000000..33d96b6 --- /dev/null +++ b/.nano/urls.nanorc @@ -0,0 +1,18 @@ +############################################################################## +# +# Syntax highlighting for HTTP codes +# +# Author: Josef 'Jupp' Schugt, jupp(a)rubyforge.org +# License: GPL 2 or later +# +# Version: 2004-02-25 +# +############################################################################## + +syntax "urls" +color brightmagenta "^.*$" +color cyan "^(1[0-9][0-9]|20[256]|30[45]).*$" +color green "^20[03].*$" +color brightyellow "^(201|30[0-37]).*$" +color brightred "^(204|[45][0-9][0-9]|666).*$" + diff --git a/.nano/vhost.nanorc b/.nano/vhost.nanorc new file mode 100644 index 0000000..2cbcf2e --- /dev/null +++ b/.nano/vhost.nanorc @@ -0,0 +1,42 @@ +## Apache httpd.conf highlighting +## +#how to add sites-enabled files? "default" is too generic to keep in here I think +syntax "vhost" "(\.|/|)vhost\.conf" +color brightwhite "(ServerRoot|(Lock|Pid)File|Timeout|(Max)?KeepAlive(Requests|Timeout)?)" +color brightwhite "(User|Group|LogFormat|ErrorLog|Include|(Script)?Alias)" +color brightwhite "(ErrorDocument|AccessFileName|UseCanonicalName|TypesConfig|DefaultType)" +color brightwhite "(HostnameLookups|IndexOptions|(Readme|Header)Name|LanguagePriority)" +color brightwhite "(AddIcon(ByEncoding|ByType)?|DefaultIcon|IndexIgnore|BrowserMatch)" +color brightwhite "(Add(Encoding|Language|(Default)?Charset|Type|Handler)|DirectoryIndex)" +color brightwhite "(DocumentRoot|Server(Admin|Signature)|LogLevel|CustomLog)" +color brightwhite "((Force)?LanguagePriority|NameVirtualHost)" +color brightyellow "(SetHandler|Order|Deny|Allow|SetOutputFilter)" +color yellow "(AllowOverride|FileInfo|AuthConfig|Limit)" +color yellow "([^A-Z0-9a-z]Options|Indexes|(\+|\-)?SymLinksIfOwnerMatch)" +color yellow "(Includes(NoExec)?|(\+|\-)?MultiViews)" +color yellow "(None|allow,deny|deny,allow|(allow)? from (all)?|Prefer|Fallback)" +color yellow "(Add(Handler|OutputFilter)|NumServers|AcceptMutex)" +color yellow "((Min|Max)Spare(Threads|Servers)|Start(Threads|Servers))" +color yellow "(MaxClients|(Max)?ThreadsPerChild|MaxRequestsPerChild)" +color yellow "(FancyIndexing|VersionSort|ExecCGI|FollowSymLinks)" +color brightred "(On|Off)[[:space:]]*$" +color brightred "[[:space:]]+(debug|info|notice|warn|error|crit|alert|emerg)[[:space:]]*$" +color brightred "[[:space:]]+(combined|common|referer|agent)[[:space:]]*$" +color brightred "[[:space:]]+(redirect\-carefully|nokeepalive)[[:space:]]*" +color brightred "[[:space:]]+(force\-response\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+(downgrade\-1\.0)[[:space:]]*" +color brightred "[[:space:]]+application/[a-zA-Z\-]+[[:space:]]*" +color brightred "[[:space:]]+type-map[[:space:]]*" +color magenta "[[:space:]]+[0-9]+[[:space:]]*" +color magenta "(/)?(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[1-9])(\.(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])){3}([[:space:]]+::(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])/(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9]))?" +color brightcyan start="<" end=">" +color white ""(\\.|[^\"])*"" +# Unix-based paths +# can't use \] in the regex for some reason?!? Maybe a bug? +# this is preventing a 100% "to the end of the line" match for a few +# lines (the trailing characters from ] to the EOL are not highlighted. +# if anyone knows how to make it work, let me know.. ;) +color white "[[:space:]]+(/[/\[\^#A-Za-z0-9\.\*\_\-]+)+" +color green "^[[:space:]]*#.*" +color cyan "\<(ServerName|Serveralias|DocumentRoot|DirectoryIndex|ErrorLog|CustomLog)\>" + diff --git a/.nano/xdefaults.nanorc b/.nano/xdefaults.nanorc new file mode 100644 index 0000000..f57261e --- /dev/null +++ b/.nano/xdefaults.nanorc @@ -0,0 +1,10 @@ +## Xdefaults +syntax "Xdefaults" "(\.|/|)default.$" "(\.|/|)resource.$" "fonts.alias" +color magenta "XTerm" +color cyan "Rxvt" +color white "\*(\\.|[^'])*\:" +color brightblue "\<(true)\>" +color brightred "\<(false)\>" +color brightwhite "[0-9]" +color green "!.*$" "#.*$" + diff --git a/.nano/xml.nanorc b/.nano/xml.nanorc new file mode 100644 index 0000000..9c48f64 --- /dev/null +++ b/.nano/xml.nanorc @@ -0,0 +1,20 @@ +############################################################################## +# +# Syntax highlighting for XML files +# +# Author: Josef 'Jupp' Schugt, jupp(a)rubyforge.org +# License: GPL 2 or later +# +# Version: 2004-02-25 +# +############################################################################## + +syntax "ml" ".*\.([jrs]?html?|xml|sgml?|lhtml|opml|kdevelop|vcproj|glade|xsd|plist|gcs|dtd|dcl)$" "catalog$" "docbook$" +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" + diff --git a/.nano/xorg.nanorc b/.nano/xorg.nanorc new file mode 100644 index 0000000..51c7464 --- /dev/null +++ b/.nano/xorg.nanorc @@ -0,0 +1,18 @@ +## syntax highlighting in xorg.conf +## +syntax "xorg" "xorg\.conf$" +color brightwhite "[^A-Za-z0-9](End)?Sub[sS]ection([^A-Za-z0-9]|[[:space:]]*)" +color brightwhite "^[[:space:]]*(End)?Section([^A-Za-z0-9]|[[:space:]]*)" +color yellow "[^A-Za-z0-9](Monitor|View[pP]ort|Virtual)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9]Mod(e|es|eline|ulePath|elName)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](\+vsync|\+hsync|HorizSync|VertRefresh)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Rgb|Font)Path[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Default(Color)?)?Depth[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Input)?Device[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](Identifier|Screen|Option)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9]((Left|Right)Of|Driver|Load)[^A-Za-z0-9]" +color yellow "[^A-Za-z0-9](VendorName|BoardName|BusID)[^A-Za-z0-9]" +color magenta "[0-9]" +color white ""(\\.|[^\"])*"" +color green "#.*" + diff --git a/.nanorc b/.nanorc new file mode 100644 index 0000000..0d33ed8 --- /dev/null +++ b/.nanorc @@ -0,0 +1,64 @@ + +## The characters treated as closing brackets when justifying +## paragraphs. They cannot contain blank characters. Only closing +## punctuation, optionally followed by closing brackets, can end +## sentences. +## +set brackets ""')>]}" + +## Constantly display the cursor position in the statusbar. Note that +## this overrides "quickblank". +set const + + + +## The opening and closing brackets that can be found by bracket +## searches. They cannot contain blank characters. The former set must +## come before the latter set, and both must be in the same order. +## +set matchbrackets "(<[{)>]}" + +## Allow multiple file buffers (inserting a file will put it into a +## separate buffer). You must have configured with --enable-multibuffer +## for this to work. +## +set multibuffer + +## Don't wrap text at all. +set nowrap + +## The characters treated as closing punctuation when justifying +## paragraphs. They cannot contain blank characters. Only closing +## punctuation, optionally followed by closing brackets, can end +## sentences. +## +set punct "!.?" + +## Fix Backspace/Delete confusion problem. +# set rebinddelete + +## Allow nano to be suspended. +set suspend + +## Use this tab size instead of the default; it must be greater than 0. +set tabsize 4 + +## Convert typed tabs to spaces. +set tabstospaces + + + +## Syntax Highlighting +include "~/.nano/apache2.nanorc" +include "~/.nano/css.nanorc" +include "~/.nano/default.nanorc" +#include "~/.nano/etc-stuff.nanorc" +include "~/.nano/html.nanorc" +include "~/.nano/js.nanorc" +include "~/.nano/man.nanorc" +include "~/.nano/nanorc.nanorc" +#include "~/.nano/others.nanorc" +include "~/.nano/perl.nanorc" +include "~/.nano/python.nanorc" +include "~/.nano/ruby.nanorc" +include "~/.nano/sh.nanorc"