Automated merge with file:///E:\srv\hg\skel
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 14 Mar 2010 23:22:22 +0200
changeset 30 669c0e5c3f58
parent 27 55688ec975f9 (diff)
parent 29 1a0b84ed3954 (current diff)
child 31 4f492a0583cc
Automated merge with file:///E:\srv\hg\skel
.bashrc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.Xdefaults	Sun Mar 14 23:22:22 2010 +0200
@@ -0,0 +1,30 @@
+! To update db after edit run:
+!   $ xrdb -merge ~/.Xdefaults
+
+emacs.font: 7x13
+emacs21.font: 7x13
+emacs22.font: 7x13
+emacs23.font: 7x13
+emacs22-gtk.font: 7x13
+emacs23-gtk.font: 7x13
+! Same as 7x13
+! emacs.font: -misc-fixed-medium-r-*-*-13-*-*-*-*-*-iso8859-*
+! emacs.font: -misc-fixed-medium-r-*-*-14-*-*-*-*-*-iso8859-*
+
+! emacs.geometry: 20x20+0+0
+! emacs.FontBackend: xft
+
+rxvt*background: white
+rxvt*foreground: black
+rxvt*geometry: 120x40
+rxvt*font: 7x14
+rxvt*scrollBar: on
+rxvt*saveLines: 5000
+
+xpdf*initialZoom: width
+
+! xterm*font: 10x20
+! XTerm*loginShell: true
+
+! Xft.hinting: none
+! Xft.dpi: 96
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.bashrc	Sun Mar 14 23:22:22 2010 +0200
@@ -0,0 +1,82 @@
+
+# XXX
+# [ -f /etc/bashrc ] && . /etc/bashrc
+
+# XXX for mc, cvs, svn, ...
+# export EDITOR=vim
+
+# XXX vim and gnome-terminal have support for 256 colours in fedora 8 at least
+# Note debian/ubuntu users should install the ncurses-term package to support this
+# export TERM=xterm-256color
+
+# XXX highlight $HOST:$PWD prompt
+# PS1='\[\e[1m\]\h:\w\$\[\e[0m\] '
+PS1='bash# '
+
+# Don't store duplicate adjacent items in the history.
+#   ignorespace     do not save lines that start with space
+#   erasedups       all previous lines matching the current line to be removed from
+#                   the history list before that line is saved
+HISTCONTROL=igrorespace:erasedups
+
+# Don't store noisy/dumb items.
+HISTIGNORE=" ?cd *":"e *":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":ls:pwd:"vlc*"
+
+# To these options assigned default value, as they satisfy my needs I comment them.
+# HISTFILE=~/.bash_history  # where is command history stored
+# HISTFILESIZE=500          # how many lines been in $HISTFILE
+# HISTSIZE=500              # how many lines been stored in bash process
+
+# Can be XXX /visible. I like bell.
+# set bell-style visible
+
+# Minor errors in the spelling of a directory component in a cd command will
+# be corrected.
+shopt -s cdspell
+
+# Adjust settings according to current terminal window width
+# which may have changed while the last command was running
+# (which is a common occurance for vim/less/etc.)
+# Note this is already set in /etc/bashrc on Fedora 8 at least.
+shopt -s checkwinsize
+
+# Let me have core dumps
+ulimit -c unlimited
+
+
+#######################################
+# shortcut aliases
+#######################################
+
+alias ..="cd .."        #go to parent dir
+alias ...="cd ../.."    #go to grandparent dir
+alias -- -="cd -"       #go to previous dir
+alias l.='ls -d .*'     #list hidden files
+alias ll='ls -lhrt'     #extra info compared to "l"
+alias lld='ls -lUd */'  #list directories
+
+# make and change to a directory
+md () { mkdir -p "$1" && cd "$1"; }
+
+# GREP_COLOR=bright yellow on black bg.
+# use GREP_COLOR=7 to highlight whitespace on black terminals
+# LANG=C for speed. See also: http://www.pixelbeat.org/scripts/findrepo
+# alias grep='GREP_COLOR="1;33;40" LANG=C grep --color=auto'
+
+# alias ls="BLOCK_SIZE=\'1 ls --color=auto" #enable thousands grouping and colour
+# alias minicom='minicom -c on' #enable colour
+# alias cal='cal -3' #show 3 months by default
+# alias units='units -t' #terse mode
+# alias diff='LC_ALL=C TZ=GMT0 diff -Naur' #normalise diffs for distribution
+# alias lynx='lynx -force_html -width=$COLUMNS' #best settings for viewing HTML
+# alias links='links -force-html' #need to enable colour in config menu manually
+# alias xterm='xterm -fb "" -bg black -fg gray -fa "Sans Mono" -fs 10 +sb -sl 3000 -g 80x50+1+1'
+# alias sudo='sudo env PATH=$PATH' #work around sudo built --with-secure-path (ubuntu)
+# alias vim='vim -X' #don't try to contact xserver (which can hang on network issues)
+# alias gdb='gdb -tui' #enable the text window interface if possible
+
+# what most people want from od (hexdump)
+# alias hd='od -Ax -tx1z -v'
+
+# canonicalize path (including resolving symlinks)
+# alias realpath='readlink -f'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.mailsign	Sun Mar 14 23:22:22 2010 +0200
@@ -0,0 +1,1 @@
+Best regards!
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.mc/bashrc	Sun Mar 14 23:22:22 2010 +0200
@@ -0,0 +1,7 @@
+# -*- mode: sh -*-
+
+#   ignorespace do not save lines that start with space
+#   erasedups all previous lines matching the current line to be removed from
+#             the history list before that line is saved
+export HISTCONTROL=igrorespace:erasedups
+export HISTIGNORE=" ?cd *":"e *":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":ls:pwd:"vlc*"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.mc/bindings	Sun Mar 14 23:22:22 2010 +0200
@@ -0,0 +1,590 @@
+# Midnight Commander 3.0 extension file
+# Warning: Structure of this file has changed completely with version 3.0
+#
+# All lines starting with # or empty lines are thrown away.
+# Lines starting in the first column should have following format:
+#
+# keyword/descNL, i.e. everything after keyword/ until new line is desc
+#
+# keyword can be: 
+#
+#    shell (desc is, when starting with a dot, any extension (no wildcars), 
+#          i.e. matches all the files *desc . Example: .tar matches *.tar;
+#          if it doesn't start with a dot, it matches only a file of that name)
+#
+#    regex (desc is an extended regular expression)
+#          Please note that we are using the GNU regex library and thus
+#          \| matches the literal | and | has special meaning (or) and
+#          () have special meaning and \( \) stand for literal ( ).
+#
+#    type  (file matches this if `file %f` matches regular expression desc
+#          (the filename: part from `file %f` is removed))
+#
+#    directory (matches any directory matching regular expression desc)
+#
+#    include (matches an include directive)
+#
+#    default (matches any file no matter what desc is)
+#
+# Other lines should start with a space or tab and should be in the format:
+#
+# keyword=commandNL (with no spaces around =), where keyword should be: 
+#
+#    Open (if the user presses Enter or doubleclicks it), 
+#
+#    View (F3), Edit (F4)
+#
+#    Include is the keyword used to add any further entries from an include/
+#    section
+#
+# command is any one-line shell command, with the following substitutions:
+#
+# %% -> % character
+# %p -> name of the current file (without path, but pwd is its path)
+# %f -> name of the current file. Unlike %p, if file is located on a 
+#	non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
+#	then the file will be temporarily copied into a local directory
+#	and %f will be the full path to this local temporal file.
+#	If you don't want to get a local copy and want to get the
+#	virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
+#	use %d/%p instead of %f.
+# %d -> name of the current directory (pwd, without trailing slash)
+# %s -> "selected files", i.e. space separated list of tagged files if any
+#       or name of the current file
+# %t -> list of tagged files
+# %u -> list of tagged files (they'll be untaged after the command)
+#
+# (If these 6 letters are in uppercase, they refer to the other panel.
+# But you shouldn't have to use it in this file.)
+#
+#
+# %cd -> the rest is a path mc should change into (cd won't work, since it's
+#	a child process).  %cd handles even vfs names.
+#
+# %view -> the command you type will be piped into mc's internal file viewer
+#	if you type only the %view and no command, viewer will load %f file
+#	instead (i.e. no piping, so it is different to %view cat %f)
+#	%view may be directly followed by {} with a list of any of
+#	ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
+#	text using backspace for bold and underscore) and unform
+#	(no highlighting for nroff sequences) separated by commas.
+#
+# %var -> You use it like this: %var{VAR:default}.  This macro will expand
+#       to the value of the VAR variable in the environment if it's set
+#       otherwise the value in default will be used.  This is similar to
+#       the Bourne shell ${VAR-default} construct.
+#
+# Rules are applied from top to bottom, thus the order is important.
+# If some actions are missing, search continues as if this target didn't
+# match (i.e. if a file matches the first and second entry and View action
+# is missing in the first one, then on pressing F3 the View action from
+# the second entry will be used. default should catch all the actions.
+#
+# Any new entries you develop for you are always welcome if they are
+# useful on more than one system.  You can send your modifications
+# by e-mail to mc-devel@gnome.org
+
+
+### Changes ###
+#
+# Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
+
+
+### TODO ###
+#
+# Postscript	Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
+# Images		asciiview
+# 
+# All X Apps	[Nothing/Warning] if no DISPLAY
+# Not found	[Default/Warning]
+# Empty Output	[Default/Warning]
+# Edit:		CopyOut+EDIT+CopyIn
+# Security	Check gzip/bzip EDIT (mktemp)
+# 
+# Maybe:	Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
+
+regex/\.pdf\.gz$
+    Open=(zxpdf %f &)
+
+### Archives ###
+
+# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
+regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
+	Open=%cd %p#utar
+	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
+
+regex/\.tar\.bz$
+	# Open=%cd %p#utar
+	View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
+
+regex/\.t(ar\.bz2|bz|b2)$
+	Open=%cd %p#utar
+	View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
+
+# .tar.F - used in QNX
+regex/\.tar\.F$
+	# Open=%cd %p#utar
+	View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
+
+# .qpr/.qpk - QNX Neutrino package installer files 
+regex/\.(qp[rk])$
+	Open=%cd %p#utar
+	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
+
+# tar
+regex/\.(tar|TAR)$
+	Open=%cd %p#utar
+	View=%view{ascii} tar tvvf - < %f 
+
+# lha
+type/^LHa\ .*archive
+	Open=%cd %p#ulha
+	View=%view{ascii} lha l %f
+
+# arj
+regex/\.a(rj|[0-9][0-9])$
+	Open=%cd %p#uarj
+	View=%view{ascii} arj l %f
+
+# ha
+regex/\.([Hh][Aa])$
+	Open=%cd %p#uha
+	View=%view{ascii} ha lf %f
+
+# rar
+regex/\.[rR]([aA][rR]|[0-9][0-9])$
+	Open=%cd %p#urar
+	View=%view{ascii} rar v -c- %f
+
+# cpio
+shell/.cpio.Z
+	Open=%cd %p#ucpio
+	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
+
+shell/.cpio.gz
+	Open=%cd %p#ucpio
+	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
+
+shell/.cpio
+	Open=%cd %p#ucpio
+	View=%view{ascii} cpio -itv <'%f' 2>/dev/null
+
+# ls-lR
+regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$
+	Open=%cd %p#lslR
+
+# patch
+regex/\.(diff|patch)(\.(bz2|gz|Z))?$
+        Open=%cd %p#patchfs
+
+# ar library
+regex/\.s?a$
+	Open=%cd %p#uar
+	#Open=%view{ascii} ar tv %f
+	View=%view{ascii} file %f && nm %f
+
+# trpm
+regex/\.trpm$
+	Open=%cd %p#trpm
+	View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
+
+# RPM packages (SuSE uses *.spm for source packages)
+regex/\.(rpm|spm)$
+	Open=%cd %p#rpm
+	View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
+
+# deb
+regex/\.u?deb$
+	Open=%cd %p#deb
+	View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
+
+# dpkg
+shell/.debd
+        Open=%cd %p#debd
+        View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
+# apt
+shell/.deba
+        Open=%cd %p#deba
+        View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
+
+# ISO9660
+regex/\.iso$
+	Open=%cd %p#iso9660
+	View=%view{ascii} isoinfo -l -i %f
+
+# 7zip archives (they are not man pages)
+shell/.7z
+	View=%view{ascii} 7za l %f 2>/dev/null
+
+
+### Sources ###
+
+# C
+shell/.c
+	Open=sensible-editor %f
+
+# Fortran
+shell/.f
+	Open=sensible-editor %f
+	
+# Header
+regex/\.(h|hpp)$
+	Open=sensible-editor %f
+
+# Object
+shell/.o
+	#Open=sensible-pager %f
+	View=%view{ascii} file %f && nm %f
+
+# Asm
+shell/.s
+	Open=sensible-editor %f
+
+# C++
+regex/\.(C|cc|cpp)$
+	Open=sensible-editor %f
+
+
+### Documentation ###
+
+# Texinfo
+regex/\.(te?xi|texinfo)$
+
+# GNU Info page
+type/^Info\ text
+	Open=info -f %f
+
+shell/.info
+	Open=info -f %f
+
+# Manual page
+# Exception - .so libraries are not manual pages
+regex/\.(so|so\.[0-9\.]*)$
+	View=%view{ascii} file %f && nm %f
+
+regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
+	Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac | sensible-pager
+	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac
+
+# Troff with me macros.
+# Exception - "read.me" is not a nroff file.
+shell/read.me
+	Open=
+	View=
+
+shell/.me
+	Open=nroff  -me %f | sensible-pager
+	View=%view{ascii,nroff} nroff  -me %f
+
+# Troff with ms macros.
+shell/.ms
+	Open=nroff  -ms %f | sensible-pager
+	View=%view{ascii,nroff} nroff  -ms %f
+
+# Manual page - compressed
+regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
+	Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac | sensible-pager
+	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac
+
+regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
+	Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac | sensible-pager
+	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac
+
+regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
+	Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac | sensible-pager
+	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac
+
+
+### Images ###
+
+type/^GIF
+	Include=image
+
+type/^JPEG
+	View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f
+	Include=image
+
+type/^PC\ bitmap
+	Include=image
+
+type/^PNG
+	Include=image
+
+type/^TIFF
+	Include=image
+
+type/^PBM
+	Include=image
+
+type/^PGM
+	Include=image
+
+type/^PPM
+	Include=image
+
+type/^Netpbm
+	Include=image
+
+shell/.xcf
+	Open=gimp %f
+
+shell/.xbm
+	Include=image 
+	#Open=bitmap %f
+
+shell/.xpm
+	Include=image
+	View=sxpm %f
+
+include/image
+	Open=see %f
+	#Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
+	View=%view{ascii} identify %f
+	#View=%view{ascii} asciiview %f
+
+
+### Sound files ###
+
+regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
+	Open=run-mailcap audio/x-wav:%f
+	#Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi
+
+regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
+	Open=run-mailcap application/x-mod:%f
+        #Open=mikmod %f
+        #Open=tracker %f
+
+regex/\.([wW][aA][wW]22)$
+       Open=vplay -s 22 %f
+
+regex/\.([mM][pP]3)$
+	Open=run-mailcap audio/mpeg:%f
+	#Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
+	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
+
+regex/\.([oO][gG][gG])$
+	Open=run-mailcap application/x-ogg:%f &
+	#Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
+	View=%view{ascii} ogginfo %s
+
+regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
+	Open=run-mailcap audio/midi:%f
+	#Open=timidity %f
+
+regex/\.([wW][mM][aA])$
+	Open=mplayer -vo null %f
+	View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
+
+
+### Play lists ###
+
+regex/\.([mM]3[uU]|[pP][lL][sS])$
+	Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi
+
+
+### Video ###
+
+regex/\.([aA][vV][iI])$
+	Include=video
+
+regex/\.([aA][sS][fFxX])$
+	Include=video
+
+regex/\.([dD][iI][vV][xX])$
+	Include=video
+
+regex/\.([mM][oO][vV]|[qQ][tT])$
+	Include=video
+
+regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
+	Include=video
+
+regex/\.([vV][oO][bB])$
+	Include=video
+
+regex/\.([wW][mM][vV])$
+	Include=video
+
+regex/\.([oO][gG][mM])$
+	Include=video
+
+regex/\.([rR][aA]?[mM])$
+	Open=run-mailcap audio/x-pn-realaudio:%f
+	#Open=(realplay %f >/dev/null 2>&1 &)
+
+include/video
+	Open=see %f
+	#Open=(mplayer %f >/dev/null 2>&1 &)
+	#Open=(gtv %f >/dev/null 2>&1 &)
+	#Open=(xanim %f >/dev/null 2>&1 &)
+
+
+### Documents ###
+
+# Postscript
+type/^PostScript
+	Open=run-mailcap application/postscript:%f
+	#Open=(gv %f &)
+	View=%view{ascii} ps2ascii %f
+
+# PDF
+type/^PDF
+#	Open=run-mailcap application/pdf:%f 1>/dev/null 2>&1 &
+	Open=run-mailcap application/pdf:%f 2>/dev/null &
+	#Open=(xpdf %f &)
+	#Open=(acroread %f &)
+	#Open=(ghostview %f &)
+	View=%view{ascii} pdftotext %f -
+
+# CHM
+shell/.chm
+	Open=xchm %f &
+	#Open=(xpdf %f &)
+	#Open=(acroread %f &)
+	#Open=(ghostview %f &)
+
+# The following code very ugly and should not be taken as example.
+# It should be cleaned up when the new format of mc.ext is developed.
+
+# DJVU
+shell/.djvu
+    Open=djview %f &
+
+# html
+regex/\.([hH][tT][mM][lL]?)$
+	Open=run-mailcap text/html:%f
+	#Open=(if test -n "" && test -n "$DISPLAY"; then ( file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
+	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
+
+# StarOffice 5.2
+shell/.sdw
+	Open=(ooffice %f &)
+
+# StarOffice 6 and OpenOffice.org formats
+regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
+	Open=(ooffice %f &)
+	View=%view{ascii} unzip -p %f content.xml | o3totxt
+
+# AbiWord
+shell/.abw
+	Open=(abiword %f &)
+
+# Microsoft Word Document
+regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
+	Open=run-mailcap application/msword:%f
+	#Open=(abiword %f >/dev/null 2>&1 &)
+	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
+type/^Microsoft\ Word
+	Open=(abiword %f >/dev/null 2>&1 &)
+	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
+
+# RTF document
+regex/\.([rR][tT][fF])$
+	Open=run-mailcap text/rtf:%f
+	#Open=(abiword %f >/dev/null 2>&1 &)
+
+# Microsoft Excel Worksheet
+regex/\.([xX][lL][sSwW])$
+	Open=run-mailcap application/vnd.ms-excel:%f &
+	#Open=(gnumeric %f >/dev/null 2>&1 &)
+	View=%view{ascii} xls2csv %f || strings %f
+type/^Microsoft\ Excel
+	Open=run-mailcap application/vnd.ms-excel:%f &
+	#Open=(gnumeric %f >/dev/null 2>&1 &)
+	View=%view{ascii} xls2csv %f || strings %f
+
+# Use OpenOffice.org to open any MS Office documents
+type/^Microsoft\ Office\ Document
+	Open=(ooffice %f &)
+
+# Framemaker
+type/^FrameMaker
+	Open=fmclient -f %f
+
+# DVI
+regex/\.([dD][vV][iI])$
+	Open=run-mailcap application/x-dvi:%f &
+	#Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
+	View=%view{ascii} dvi2tty %f
+
+# TeX
+regex/\.([Tt][Ee][Xx])$
+	Open=sensible-editor %f
+	#Open=%var{EDITOR:vi} %f
+
+
+### Miscellaneous ###
+
+# Makefile
+regex/[Mm]akefile$
+	Open=make -f %f %{Enter parameters}
+
+# Imakefile
+shell/Imakefile
+	Open=xmkmf -a
+
+# Makefile.PL (MakeMaker)
+regex/^Makefile.(PL|pl)$
+	Open=%var{PERL:perl} %f
+
+# dbf
+regex/\.([dD][bB][fF])$
+       Open=%view{ascii} dbview %f
+       View=%view{ascii} dbview -b %f
+
+# REXX script
+regex/\.(rexx?|cmd)$
+       Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
+
+
+### Plain compressed files ###
+
+# zip
+type/^([Zz][Ii][Pp])\ archive
+	Open=%cd %p#uzip
+	View=%view{ascii} unzip -v %f
+
+# zoo
+regex/\.([Zz][Oo][Oo])$
+	Open=%cd %p#uzoo
+	View=%view{ascii} zoo l %f
+	
+# gzip
+type/^gzip
+	Open=gzip -dc %f | sensible-pager
+	View=%view{ascii} gzip -dc %f 2>/dev/null
+
+# bzip2
+type/^bzip2
+	Open=bzip2 -dc %f | sensible-pager
+	View=%view{ascii} bzip2 -dc %f 2>/dev/null
+
+# bzip
+type/^bzip
+	Open=bzip -dc %f | sensible-pager
+	View=%view{ascii} bzip -dc %f 2>/dev/null
+
+# compress
+type/^compress
+	Open=gzip -dc %f | sensible-pager
+	View=%view{ascii} gzip -dc %f 2>/dev/null
+
+### Debian additions ###
+
+# Gettext Catalogs
+shell/.mo
+	View=%view{ascii} msgunfmt %f || cat %f
+
+### My. ###
+
+shell/.my
+    Open=echo %f %{Enter opt:} %{Enter file:}
+
+### Default ###
+
+# Default target for anything not described above
+default/*
+	Open=
+	View=
+
+### EOF ###
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.vimrc	Sun Mar 14 23:22:22 2010 +0200
@@ -0,0 +1,74 @@
+" On loding VIM search for /etc/vimrc, ~/.vimrc.
+
+syntax on
+
+" Do not emulate old vi bug.
+set nocompatible
+
+" Same as set ts=4, by default - 8, how long TAB.
+set tabstop=4
+" Use spaces instead TAB.
+set shiftwidth=4
+set smarttab
+set et
+
+" Move cursor on RET to previous line indent.
+set autoindent
+" Indent for C-like languages.
+set smartindent
+
+" This setting will cause the cursor to very briefly jump to a
+" brace/parenthese/bracket's "match" whenever you type a closing or opening
+" brace/parenthese/bracket. I've had almost no mismatched-punctuation errors
+" since I started using this setting.
+set showmatch
+
+" Turn on incremental search with ignore case (except explicit caps).
+set incsearch
+set ignorecase
+set smartcase
+
+" Have 3 lines of offset (or buffer) when scrolling.
+set scrolloff=3
+
+" I find the toolbar in the GUI version of vim (gvim) to be somewhat useless
+" visual clutter. This option gets rid of the toolbar.
+set guioptions-=T
+
+
+" This setting prevents vi from making its annoying beeps when a command
+" doesn't work. Instead, it briefly flashes the screen -- much less annoying.
+set vb t_vb=
+
+
+" This setting ensures that each window contains a statusline that displays
+" the current cursor position.
+set ruler
+
+" By default, search matches are highlighted. I find this annoying most of the
+" time. This option turns off search highlighting. You can always turn it back
+" on with :set hls.
+set nohls
+
+" With this nifty option, vim will search for text as you enter it. For
+" instance, if you type /bob to search for bob, vi will go to the first "b"
+" after you type the "b," to the first "bo" after you type the "o," and so on.
+" It makes searching much faster, since if you pay attention you never have to
+" enter more than the minimum number of characters to find your target
+" location. Make sure that you press Enter to accept the match after vim finds
+" the location you want.
+set incsearch
+
+
+" By default, vim doesn't let the cursor stray beyond the defined text. This
+" setting allows the cursor to freely roam anywhere it likes in command mode.
+" It feels weird at first but is quite useful.
+set virtualedit=all
+
+set ruler
+
+" Local Variables:
+" mode: fundamental
+" comment-start: "\""
+" eval: (font-lock-add-keywords nil '( ("^[[:blank:]]*\".*" . font-lock-comment-face) ))
+" End:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.xinitrc	Sun Mar 14 23:22:22 2010 +0200
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+xrdb -merge ~/.Xdefaults &
+# xrdb -load ~/.Xdefaults &
+
+# Set lang switch.
+# Because of bug in xorg invoking setxkbmap cause disable repeat char when key pressed.
+# setxkbmap -rules xorg -model pc104 -layout "us,ru" -option "grp:rwin_toggle,grp_led:scroll" &
+
+fvwm &
+
+# Last command.
+xterm -e bash -i
+# xterm
--- a/Makefile	Fri Mar 12 21:45:39 2010 +0200
+++ b/Makefile	Sun Mar 14 23:22:22 2010 +0200
@@ -12,30 +12,24 @@
   host_os = windows
 endif
 
-ALL_DIR = all
-LINUX_DIR = linux
-WIN_DIR = win
-
-ifeq 'linux' '$(host_os)'
-  DIRS = all linux
-endif
-ifeq 'windows' '$(host_os)'
-  DIRS = all
-  # DIRS += win
-endif
+ITEMS = .Xdefaults .bashrc .mailsign .xinitrc .mc .vimrc
 
 .PHONY: install
 install:
-	for srcdir in $(DIRS); do \
-		prefix=$$PWD/$$srcdir; \
-		for item in `find $$prefix -type f`; do \
-			fname=$${item##*/}; \
-			file=$${item#$${prefix}/}; \
-			dir=$${file%$${fname}}; \
-			dir=$${dir%/}; \
-			[ -n $$dir ] && mkdir -p $(HOME)/$$dir; \
-			install -m 660 $$srcdir/$$file $(HOME)/$$dir; \
-		done; \
+	for item in $(ITEMS); do \
+		if [ -f $$item ]; then \
+			install -m 640 $$item $(HOME)/$$item; \
+		fi; \
+		if [ -d $$item ]; then \
+			for file in `find $$item`; do \
+				if [ -d $$file ]; then \
+					[ -d $(HOME)/$$file ] || mkdir -p $(HOME)/$$file; \
+				fi; \
+				if [ -f $$file ]; then \
+					install -m 640 $$file $(HOME)/$$file; \
+				fi; \
+			done; \
+		fi; \
 	done
 
 .PHONY: uninstall
@@ -47,4 +41,3 @@
 
 .PHONY: distclean
 distclean: clean
-
--- a/all/.bashrc	Fri Mar 12 21:45:39 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-
-# XXX
-# [ -f /etc/bashrc ] && . /etc/bashrc
-
-# XXX for mc, cvs, svn, ...
-# export EDITOR=vim
-
-# XXX vim and gnome-terminal have support for 256 colours in fedora 8 at least
-# Note debian/ubuntu users should install the ncurses-term package to support this
-# export TERM=xterm-256color
-
-# XXX highlight $HOST:$PWD prompt
-# PS1='\[\e[1m\]\h:\w\$\[\e[0m\] '
-PS1='bash# '
-
-# Don't store duplicate adjacent items in the history.
-#   ignorespace     do not save lines that start with space
-#   erasedups       all previous lines matching the current line to be removed from
-#                   the history list before that line is saved
-HISTCONTROL=igrorespace:erasedups
-
-# Don't store noisy/dumb items.
-HISTIGNORE=" ?cd *":"e *":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":ls:pwd:"vlc*"
-
-# To these options assigned default value, as they satisfy my needs I comment them.
-# HISTFILE=~/.bash_history  # where is command history stored
-# HISTFILESIZE=500          # how many lines been in $HISTFILE
-# HISTSIZE=500              # how many lines been stored in bash process
-
-# Can be XXX /visible. I like bell.
-# set bell-style visible
-
-# Minor errors in the spelling of a directory component in a cd command will
-# be corrected.
-shopt -s cdspell
-
-# Adjust settings according to current terminal window width
-# which may have changed while the last command was running
-# (which is a common occurance for vim/less/etc.)
-# Note this is already set in /etc/bashrc on Fedora 8 at least.
-shopt -s checkwinsize
-
-# Let me have core dumps
-ulimit -c unlimited
-
-
-#######################################
-# shortcut aliases
-#######################################
-
-alias ..="cd .."        #go to parent dir
-alias ...="cd ../.."    #go to grandparent dir
-alias -- -="cd -"       #go to previous dir
-alias l.='ls -d .*'     #list hidden files
-alias ll='ls -lhrt'     #extra info compared to "l"
-alias lld='ls -lUd */'  #list directories
-
-# make and change to a directory
-md () { mkdir -p "$1" && cd "$1"; }
-
-# GREP_COLOR=bright yellow on black bg.
-# use GREP_COLOR=7 to highlight whitespace on black terminals
-# LANG=C for speed. See also: http://www.pixelbeat.org/scripts/findrepo
-# alias grep='GREP_COLOR="1;33;40" LANG=C grep --color=auto'
-
-# alias ls="BLOCK_SIZE=\'1 ls --color=auto" #enable thousands grouping and colour
-# alias minicom='minicom -c on' #enable colour
-# alias cal='cal -3' #show 3 months by default
-# alias units='units -t' #terse mode
-# alias diff='LC_ALL=C TZ=GMT0 diff -Naur' #normalise diffs for distribution
-# alias lynx='lynx -force_html -width=$COLUMNS' #best settings for viewing HTML
-# alias links='links -force-html' #need to enable colour in config menu manually
-# alias xterm='xterm -fb "" -bg black -fg gray -fa "Sans Mono" -fs 10 +sb -sl 3000 -g 80x50+1+1'
-# alias sudo='sudo env PATH=$PATH' #work around sudo built --with-secure-path (ubuntu)
-# alias vim='vim -X' #don't try to contact xserver (which can hang on network issues)
-# alias gdb='gdb -tui' #enable the text window interface if possible
-
-# what most people want from od (hexdump)
-# alias hd='od -Ax -tx1z -v'
-
-# canonicalize path (including resolving symlinks)
-# alias realpath='readlink -f'
--- a/all/.mailsign	Fri Mar 12 21:45:39 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-Best regards!
\ No newline at end of file
--- a/linux/.Xdefaults	Fri Mar 12 21:45:39 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-! To update db after edit run:
-!   $ xrdb -merge ~/.Xdefaults
-
-emacs.font: 7x13
-emacs21.font: 7x13
-emacs22.font: 7x13
-emacs23.font: 7x13
-emacs22-gtk.font: 7x13
-emacs23-gtk.font: 7x13
-! Same as 7x13
-! emacs.font: -misc-fixed-medium-r-*-*-13-*-*-*-*-*-iso8859-*
-! emacs.font: -misc-fixed-medium-r-*-*-14-*-*-*-*-*-iso8859-*
-
-! emacs.geometry: 20x20+0+0
-! emacs.FontBackend: xft
-
-xpdf*initialZoom: width
-
-! xterm*font: 10x20
-! XTerm*loginShell: true
-
-! Xft.hinting: none
-! Xft.dpi: 96
--- a/linux/.mc/bashrc	Fri Mar 12 21:45:39 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-# -*- mode: sh -*-
-
-#   ignorespace do not save lines that start with space
-#   erasedups all previous lines matching the current line to be removed from
-#             the history list before that line is saved
-export HISTCONTROL=igrorespace:erasedups
-export HISTIGNORE=" ?cd *":"e *":"sudo mv *":"sudo rm *":"sudo cp *":"sudo mkdir *":"sudo chmod *":"sudo chown *":ls:pwd:"vlc*"
--- a/linux/.mc/bindings	Fri Mar 12 21:45:39 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,590 +0,0 @@
-# Midnight Commander 3.0 extension file
-# Warning: Structure of this file has changed completely with version 3.0
-#
-# All lines starting with # or empty lines are thrown away.
-# Lines starting in the first column should have following format:
-#
-# keyword/descNL, i.e. everything after keyword/ until new line is desc
-#
-# keyword can be: 
-#
-#    shell (desc is, when starting with a dot, any extension (no wildcars), 
-#          i.e. matches all the files *desc . Example: .tar matches *.tar;
-#          if it doesn't start with a dot, it matches only a file of that name)
-#
-#    regex (desc is an extended regular expression)
-#          Please note that we are using the GNU regex library and thus
-#          \| matches the literal | and | has special meaning (or) and
-#          () have special meaning and \( \) stand for literal ( ).
-#
-#    type  (file matches this if `file %f` matches regular expression desc
-#          (the filename: part from `file %f` is removed))
-#
-#    directory (matches any directory matching regular expression desc)
-#
-#    include (matches an include directive)
-#
-#    default (matches any file no matter what desc is)
-#
-# Other lines should start with a space or tab and should be in the format:
-#
-# keyword=commandNL (with no spaces around =), where keyword should be: 
-#
-#    Open (if the user presses Enter or doubleclicks it), 
-#
-#    View (F3), Edit (F4)
-#
-#    Include is the keyword used to add any further entries from an include/
-#    section
-#
-# command is any one-line shell command, with the following substitutions:
-#
-# %% -> % character
-# %p -> name of the current file (without path, but pwd is its path)
-# %f -> name of the current file. Unlike %p, if file is located on a 
-#	non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
-#	then the file will be temporarily copied into a local directory
-#	and %f will be the full path to this local temporal file.
-#	If you don't want to get a local copy and want to get the
-#	virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
-#	use %d/%p instead of %f.
-# %d -> name of the current directory (pwd, without trailing slash)
-# %s -> "selected files", i.e. space separated list of tagged files if any
-#       or name of the current file
-# %t -> list of tagged files
-# %u -> list of tagged files (they'll be untaged after the command)
-#
-# (If these 6 letters are in uppercase, they refer to the other panel.
-# But you shouldn't have to use it in this file.)
-#
-#
-# %cd -> the rest is a path mc should change into (cd won't work, since it's
-#	a child process).  %cd handles even vfs names.
-#
-# %view -> the command you type will be piped into mc's internal file viewer
-#	if you type only the %view and no command, viewer will load %f file
-#	instead (i.e. no piping, so it is different to %view cat %f)
-#	%view may be directly followed by {} with a list of any of
-#	ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
-#	text using backspace for bold and underscore) and unform
-#	(no highlighting for nroff sequences) separated by commas.
-#
-# %var -> You use it like this: %var{VAR:default}.  This macro will expand
-#       to the value of the VAR variable in the environment if it's set
-#       otherwise the value in default will be used.  This is similar to
-#       the Bourne shell ${VAR-default} construct.
-#
-# Rules are applied from top to bottom, thus the order is important.
-# If some actions are missing, search continues as if this target didn't
-# match (i.e. if a file matches the first and second entry and View action
-# is missing in the first one, then on pressing F3 the View action from
-# the second entry will be used. default should catch all the actions.
-#
-# Any new entries you develop for you are always welcome if they are
-# useful on more than one system.  You can send your modifications
-# by e-mail to mc-devel@gnome.org
-
-
-### Changes ###
-#
-# Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
-
-
-### TODO ###
-#
-# Postscript	Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
-# Images		asciiview
-# 
-# All X Apps	[Nothing/Warning] if no DISPLAY
-# Not found	[Default/Warning]
-# Empty Output	[Default/Warning]
-# Edit:		CopyOut+EDIT+CopyIn
-# Security	Check gzip/bzip EDIT (mktemp)
-# 
-# Maybe:	Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
-
-regex/\.pdf\.gz$
-    Open=(zxpdf %f &)
-
-### Archives ###
-
-# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
-regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
-	Open=%cd %p#utar
-	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
-
-regex/\.tar\.bz$
-	# Open=%cd %p#utar
-	View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
-
-regex/\.t(ar\.bz2|bz|b2)$
-	Open=%cd %p#utar
-	View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
-
-# .tar.F - used in QNX
-regex/\.tar\.F$
-	# Open=%cd %p#utar
-	View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
-
-# .qpr/.qpk - QNX Neutrino package installer files 
-regex/\.(qp[rk])$
-	Open=%cd %p#utar
-	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
-
-# tar
-regex/\.(tar|TAR)$
-	Open=%cd %p#utar
-	View=%view{ascii} tar tvvf - < %f 
-
-# lha
-type/^LHa\ .*archive
-	Open=%cd %p#ulha
-	View=%view{ascii} lha l %f
-
-# arj
-regex/\.a(rj|[0-9][0-9])$
-	Open=%cd %p#uarj
-	View=%view{ascii} arj l %f
-
-# ha
-regex/\.([Hh][Aa])$
-	Open=%cd %p#uha
-	View=%view{ascii} ha lf %f
-
-# rar
-regex/\.[rR]([aA][rR]|[0-9][0-9])$
-	Open=%cd %p#urar
-	View=%view{ascii} rar v -c- %f
-
-# cpio
-shell/.cpio.Z
-	Open=%cd %p#ucpio
-	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
-
-shell/.cpio.gz
-	Open=%cd %p#ucpio
-	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
-
-shell/.cpio
-	Open=%cd %p#ucpio
-	View=%view{ascii} cpio -itv <'%f' 2>/dev/null
-
-# ls-lR
-regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$
-	Open=%cd %p#lslR
-
-# patch
-regex/\.(diff|patch)(\.(bz2|gz|Z))?$
-        Open=%cd %p#patchfs
-
-# ar library
-regex/\.s?a$
-	Open=%cd %p#uar
-	#Open=%view{ascii} ar tv %f
-	View=%view{ascii} file %f && nm %f
-
-# trpm
-regex/\.trpm$
-	Open=%cd %p#trpm
-	View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
-
-# RPM packages (SuSE uses *.spm for source packages)
-regex/\.(rpm|spm)$
-	Open=%cd %p#rpm
-	View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
-
-# deb
-regex/\.u?deb$
-	Open=%cd %p#deb
-	View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
-
-# dpkg
-shell/.debd
-        Open=%cd %p#debd
-        View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
-# apt
-shell/.deba
-        Open=%cd %p#deba
-        View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
-
-# ISO9660
-regex/\.iso$
-	Open=%cd %p#iso9660
-	View=%view{ascii} isoinfo -l -i %f
-
-# 7zip archives (they are not man pages)
-shell/.7z
-	View=%view{ascii} 7za l %f 2>/dev/null
-
-
-### Sources ###
-
-# C
-shell/.c
-	Open=sensible-editor %f
-
-# Fortran
-shell/.f
-	Open=sensible-editor %f
-	
-# Header
-regex/\.(h|hpp)$
-	Open=sensible-editor %f
-
-# Object
-shell/.o
-	#Open=sensible-pager %f
-	View=%view{ascii} file %f && nm %f
-
-# Asm
-shell/.s
-	Open=sensible-editor %f
-
-# C++
-regex/\.(C|cc|cpp)$
-	Open=sensible-editor %f
-
-
-### Documentation ###
-
-# Texinfo
-regex/\.(te?xi|texinfo)$
-
-# GNU Info page
-type/^Info\ text
-	Open=info -f %f
-
-shell/.info
-	Open=info -f %f
-
-# Manual page
-# Exception - .so libraries are not manual pages
-regex/\.(so|so\.[0-9\.]*)$
-	View=%view{ascii} file %f && nm %f
-
-regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
-	Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac | sensible-pager
-	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac
-
-# Troff with me macros.
-# Exception - "read.me" is not a nroff file.
-shell/read.me
-	Open=
-	View=
-
-shell/.me
-	Open=nroff  -me %f | sensible-pager
-	View=%view{ascii,nroff} nroff  -me %f
-
-# Troff with ms macros.
-shell/.ms
-	Open=nroff  -ms %f | sensible-pager
-	View=%view{ascii,nroff} nroff  -ms %f
-
-# Manual page - compressed
-regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
-	Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac | sensible-pager
-	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac
-
-regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
-	Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac | sensible-pager
-	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac
-
-regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
-	Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac | sensible-pager
-	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac
-
-
-### Images ###
-
-type/^GIF
-	Include=image
-
-type/^JPEG
-	View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f
-	Include=image
-
-type/^PC\ bitmap
-	Include=image
-
-type/^PNG
-	Include=image
-
-type/^TIFF
-	Include=image
-
-type/^PBM
-	Include=image
-
-type/^PGM
-	Include=image
-
-type/^PPM
-	Include=image
-
-type/^Netpbm
-	Include=image
-
-shell/.xcf
-	Open=gimp %f
-
-shell/.xbm
-	Include=image 
-	#Open=bitmap %f
-
-shell/.xpm
-	Include=image
-	View=sxpm %f
-
-include/image
-	Open=see %f
-	#Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
-	View=%view{ascii} identify %f
-	#View=%view{ascii} asciiview %f
-
-
-### Sound files ###
-
-regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
-	Open=run-mailcap audio/x-wav:%f
-	#Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi
-
-regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
-	Open=run-mailcap application/x-mod:%f
-        #Open=mikmod %f
-        #Open=tracker %f
-
-regex/\.([wW][aA][wW]22)$
-       Open=vplay -s 22 %f
-
-regex/\.([mM][pP]3)$
-	Open=run-mailcap audio/mpeg:%f
-	#Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
-	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
-
-regex/\.([oO][gG][gG])$
-	Open=run-mailcap application/x-ogg:%f &
-	#Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
-	View=%view{ascii} ogginfo %s
-
-regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
-	Open=run-mailcap audio/midi:%f
-	#Open=timidity %f
-
-regex/\.([wW][mM][aA])$
-	Open=mplayer -vo null %f
-	View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
-
-
-### Play lists ###
-
-regex/\.([mM]3[uU]|[pP][lL][sS])$
-	Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi
-
-
-### Video ###
-
-regex/\.([aA][vV][iI])$
-	Include=video
-
-regex/\.([aA][sS][fFxX])$
-	Include=video
-
-regex/\.([dD][iI][vV][xX])$
-	Include=video
-
-regex/\.([mM][oO][vV]|[qQ][tT])$
-	Include=video
-
-regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
-	Include=video
-
-regex/\.([vV][oO][bB])$
-	Include=video
-
-regex/\.([wW][mM][vV])$
-	Include=video
-
-regex/\.([oO][gG][mM])$
-	Include=video
-
-regex/\.([rR][aA]?[mM])$
-	Open=run-mailcap audio/x-pn-realaudio:%f
-	#Open=(realplay %f >/dev/null 2>&1 &)
-
-include/video
-	Open=see %f
-	#Open=(mplayer %f >/dev/null 2>&1 &)
-	#Open=(gtv %f >/dev/null 2>&1 &)
-	#Open=(xanim %f >/dev/null 2>&1 &)
-
-
-### Documents ###
-
-# Postscript
-type/^PostScript
-	Open=run-mailcap application/postscript:%f
-	#Open=(gv %f &)
-	View=%view{ascii} ps2ascii %f
-
-# PDF
-type/^PDF
-#	Open=run-mailcap application/pdf:%f 1>/dev/null 2>&1 &
-	Open=run-mailcap application/pdf:%f 2>/dev/null &
-	#Open=(xpdf %f &)
-	#Open=(acroread %f &)
-	#Open=(ghostview %f &)
-	View=%view{ascii} pdftotext %f -
-
-# CHM
-shell/.chm
-	Open=xchm %f &
-	#Open=(xpdf %f &)
-	#Open=(acroread %f &)
-	#Open=(ghostview %f &)
-
-# The following code very ugly and should not be taken as example.
-# It should be cleaned up when the new format of mc.ext is developed.
-
-# DJVU
-shell/.djvu
-    Open=djview %f &
-
-# html
-regex/\.([hH][tT][mM][lL]?)$
-	Open=run-mailcap text/html:%f
-	#Open=(if test -n "" && test -n "$DISPLAY"; then ( file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
-	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
-
-# StarOffice 5.2
-shell/.sdw
-	Open=(ooffice %f &)
-
-# StarOffice 6 and OpenOffice.org formats
-regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
-	Open=(ooffice %f &)
-	View=%view{ascii} unzip -p %f content.xml | o3totxt
-
-# AbiWord
-shell/.abw
-	Open=(abiword %f &)
-
-# Microsoft Word Document
-regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
-	Open=run-mailcap application/msword:%f
-	#Open=(abiword %f >/dev/null 2>&1 &)
-	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
-type/^Microsoft\ Word
-	Open=(abiword %f >/dev/null 2>&1 &)
-	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
-
-# RTF document
-regex/\.([rR][tT][fF])$
-	Open=run-mailcap text/rtf:%f
-	#Open=(abiword %f >/dev/null 2>&1 &)
-
-# Microsoft Excel Worksheet
-regex/\.([xX][lL][sSwW])$
-	Open=run-mailcap application/vnd.ms-excel:%f &
-	#Open=(gnumeric %f >/dev/null 2>&1 &)
-	View=%view{ascii} xls2csv %f || strings %f
-type/^Microsoft\ Excel
-	Open=run-mailcap application/vnd.ms-excel:%f &
-	#Open=(gnumeric %f >/dev/null 2>&1 &)
-	View=%view{ascii} xls2csv %f || strings %f
-
-# Use OpenOffice.org to open any MS Office documents
-type/^Microsoft\ Office\ Document
-	Open=(ooffice %f &)
-
-# Framemaker
-type/^FrameMaker
-	Open=fmclient -f %f
-
-# DVI
-regex/\.([dD][vV][iI])$
-	Open=run-mailcap application/x-dvi:%f &
-	#Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
-	View=%view{ascii} dvi2tty %f
-
-# TeX
-regex/\.([Tt][Ee][Xx])$
-	Open=sensible-editor %f
-	#Open=%var{EDITOR:vi} %f
-
-
-### Miscellaneous ###
-
-# Makefile
-regex/[Mm]akefile$
-	Open=make -f %f %{Enter parameters}
-
-# Imakefile
-shell/Imakefile
-	Open=xmkmf -a
-
-# Makefile.PL (MakeMaker)
-regex/^Makefile.(PL|pl)$
-	Open=%var{PERL:perl} %f
-
-# dbf
-regex/\.([dD][bB][fF])$
-       Open=%view{ascii} dbview %f
-       View=%view{ascii} dbview -b %f
-
-# REXX script
-regex/\.(rexx?|cmd)$
-       Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
-
-
-### Plain compressed files ###
-
-# zip
-type/^([Zz][Ii][Pp])\ archive
-	Open=%cd %p#uzip
-	View=%view{ascii} unzip -v %f
-
-# zoo
-regex/\.([Zz][Oo][Oo])$
-	Open=%cd %p#uzoo
-	View=%view{ascii} zoo l %f
-	
-# gzip
-type/^gzip
-	Open=gzip -dc %f | sensible-pager
-	View=%view{ascii} gzip -dc %f 2>/dev/null
-
-# bzip2
-type/^bzip2
-	Open=bzip2 -dc %f | sensible-pager
-	View=%view{ascii} bzip2 -dc %f 2>/dev/null
-
-# bzip
-type/^bzip
-	Open=bzip -dc %f | sensible-pager
-	View=%view{ascii} bzip -dc %f 2>/dev/null
-
-# compress
-type/^compress
-	Open=gzip -dc %f | sensible-pager
-	View=%view{ascii} gzip -dc %f 2>/dev/null
-
-### Debian additions ###
-
-# Gettext Catalogs
-shell/.mo
-	View=%view{ascii} msgunfmt %f || cat %f
-
-### My. ###
-
-shell/.my
-    Open=echo %f %{Enter opt:} %{Enter file:}
-
-### Default ###
-
-# Default target for anything not described above
-default/*
-	Open=
-	View=
-
-### EOF ###
--- a/linux/.xinitrc	Fri Mar 12 21:45:39 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-xrdb -merge ~/.Xdefaults &
-# xrdb -load ~/.Xdefaults &
-
-# Set lang switch.
-# Because of bug in xorg invoking setxkbmap cause disable repeat char when key pressed.
-# setxkbmap -rules xorg -model pc104 -layout "us,ru" -option "grp:rwin_toggle,grp_led:scroll" &
-
-fvwm &
-
-# Last command.
-xterm -e bash -i
-# xterm