Initial commit

This commit is contained in:
Kolan Sh 2012-05-18 15:05:19 +04:00
commit d74a379e12
17 changed files with 1602 additions and 0 deletions

171
.config/mc/ini Normal file
View File

@ -0,0 +1,171 @@
[Midnight-Commander]
verbose=1
pause_after_run=1
shell_patterns=1
auto_save_setup=1
auto_menu=0
use_internal_view=0
use_internal_edit=0
clear_before_exec=1
confirm_delete=1
confirm_overwrite=1
confirm_execute=0
confirm_history_cleanup=1
confirm_exit=1
confirm_directory_hotlist_delete=1
safe_delete=0
mouse_repeat_rate=100
double_click_speed=250
use_8th_bit_as_meta=0
confirm_view_dir=0
mouse_move_pages_viewer=1
mouse_close_dialog=0
fast_refresh=0
drop_menus=0
wrap_mode=1
old_esc_mode=1
old_esc_mode_timeout=1000000
cd_symlinks=1
show_all_if_ambiguous=0
max_dirt_limit=10
torben_fj_mode=0
use_file_to_guess_type=1
alternate_plus_minus=0
only_leading_plus_minus=1
show_output_starts_shell=0
xtree_mode=0
num_history_items_recorded=60
file_op_compute_totals=1
classic_progressbar=0
vfs_timeout=60
ftpfs_directory_timeout=900
use_netrc=1
ftpfs_retry_seconds=30
ftpfs_always_use_proxy=0
ftpfs_use_passive_connections=1
ftpfs_use_passive_connections_over_proxy=0
ftpfs_use_unix_list_options=1
ftpfs_first_cd_then_ls=1
fish_directory_timeout=900
editor_tab_spacing=8
editor_word_wrap_line_length=72
editor_fill_tabs_with_spaces=0
editor_return_does_auto_indent=1
editor_backspace_through_tabs=0
editor_fake_half_tabs=1
editor_option_save_mode=0
editor_option_save_position=1
editor_option_auto_para_formatting=0
editor_option_typewriter_wrap=0
editor_edit_confirm_save=1
editor_syntax_highlighting=1
editor_persistent_selections=1
editor_cursor_beyond_eol=0
editor_visible_tabs=1
editor_visible_spaces=1
editor_line_state=0
editor_simple_statusbar=0
editor_check_new_line=0
editor_show_right_margin=0
nice_rotating_dash=1
horizontal_split=0
mcview_remember_file_position=0
auto_fill_mkdir_name=1
copymove_persistent_attr=1
select_flags=6
editor_backup_extension=~
mcview_eof=
kilobyte_si=0
mix_all_files=0
show_backups=1
show_dot_files=1
fast_reload=0
fast_reload_msg_shown=0
mark_moves_down=1
reverse_files_only=1
navigate_with_arrows=0
scroll_pages=1
mouse_move_pages=1
filetype_mode=1
permission_mode=0
quick_search_case_sensitive=2
ignore_ftp_chattr_errors=true
keymap=mc.keymap
skin=klmn0
panel_scroll_pages=1
auto_save_setup_panels=1
filepos_max_saved_entries=1024
preallocate_space=0
editor_group_undo=0
[Layout]
equal_split=1
first_panel_size=142
message_visible=1
keybar_visible=0
xterm_title=1
output_lines=0
command_prompt=1
menubar_visible=0
show_mini_info=1
free_space=1
permission_mode=0
filetype_mode=1
[Misc]
timeformat_recent=%b %e %H:%M
timeformat_old=%b %e %Y
ftp_proxy_host=gate
ftpfs_password=anonymous@
display_codepage=UTF-8
source_codepage=UTF-8
autodetect_codeset=
clipboard_store=
clipboard_paste=
find_ignore_dirs=
[Colors]
base_color=
screen=
color_terminals=
rxvt-unicode=
rxvt=
linux=
screen.rxvt=
[Panels]
kilobyte_si=false
mix_all_files=false
show_backups=true
show_dot_files=false
fast_reload=true
fast_reload_msg_shown=true
mark_moves_down=true
reverse_files_only=true
auto_save_setup_panels=false
navigate_with_arrows=false
panel_scroll_pages=true
mouse_move_pages=true
filetype_mode=true
permission_mode=true
quick_search_mode=2
simple_swap=false
show_mini_info=true
torben_fj_mode=false
[Panelize]
Найти корректуры, отвергнутые командой patch=find . -name \\*.rej -print
Найти оригиналы (*.orig) после команды patch=find . -name \\*.orig -print
Найти программы с установленными SUID/SGID битами=find . \\( \\( -perm -04000 -a -perm +011 \\) -o \\( -perm -02000 -a -perm +01 \\) \\) -print

776
.config/mc/mc.ext Normal file
View File

@ -0,0 +1,776 @@
# 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.
### 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.lzma, .tlz
regex/\.t(ar\.lzma|lz)$
Open=%cd %p/utar://
View=%view{ascii} lzma -dc %f 2>/dev/null | tar tvvf -
# .tar.xz, .txz
regex/\.t(ar\.xz|xz)$
Open=%cd %p/utar://
View=%view{ascii} xz -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} unarj 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
# ALZip
regex/\.(alz|ALZ)$
Open=%cd %p/ualz://
View=%view{ascii} unalz -l %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(\.gz|Z|bz2)$
Open=%cd %p/lsl://R
# patch
regex/\.(diff|patch)(\.bz2)$
Open=%cd %p/patchfs://
View=%view{ascii} bzip2 -dc %f 2>/dev/null
regex/\.(diff|patch)(\.(gz|Z))$
Open=%cd %p/patchfs://
View=%view{ascii} gzip -dc %f 2>/dev/null
regex/\.(diff|patch)$
Open=%cd %p/patchfs://
View=%view{ascii} /bin/cat %f 2>/dev/null
# 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/\.(src\.rpm|spm)$
Open=%cd %p/srpm://
View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
regex/\.rpm$
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/iso://9660
View=%view{ascii} isoinfo -l -i %f
# 7zip archives (they are not man pages)
regex/\.(7z|7Z)$
Open=%cd %p/u://7z
View=%view{ascii} 7za l %f 2>/dev/null
# Mailboxes
type/^ASCII\ mail\ text
Open=%cd %p/mailfs://
### Sources ###
# C
shell/.c
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# Fortran
shell/.f
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# Header
regex/\.(h|hpp)$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# Object
type/^ELF
#Open=%var{PAGER:more} %f
View=%view{ascii} file %f && nm %f
# Asm
shell/.s
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# C++
regex/\.(C|cc|cpp)$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# PAS
regex/\.([Pp][Aa][Ss])$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# PERL
regex/\.([Pp][Ll])$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# PYTHON
regex/\.([Pp][Yy])$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# Java
regex/\.([Jj][Aa][Vv][Aa])$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
# Baurn's shell
regex/\.([Ss][Hh])$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
### TXT ###
regex/\.([Tt][Xx][Tt])$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
### Geany projects ###
regex/\.([Gg][Ee][Aa][Nn][Yy])$
#Open=%var{EDITOR:vi} %f
Open=(geany %f &>/dev/null)&
### XML ###
regex/\.([Xx][Mm][Ll])$
Open=(oxygenxml %f &>/dev/null)&
### Windows's executables ###
regex/\.([Ee][Xx][Ee])$
#Open=%var{EDITOR:vi} %f
Open=(wine %f >/dev/null 2>&1)&
### 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 ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
# View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac
# Perl pod page
shell/.pod
Open=pod2man %f | nroff -c -Tlatin1 -mandoc | %var{PAGER:more}
View=%view{ascii,nroff} pod2man %f | nroff -c -Tlatin1 -mandoc
# Troff with me macros.
# Exception - "read.me" is not a nroff file.
shell/read.me
Open=
View=
shell/.me
Open=nroff -c -Tlatin1 -me %f | %var{PAGER:more}
View=%view{ascii,nroff} nroff -c -Tlatin1 -me %f
# Troff with ms macros.
shell/.ms
Open=nroff -c -Tlatin1 -ms %f | %var{PAGER:more}
View=%view{ascii,nroff} nroff -c -Tlatin1 -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 -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; 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 -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; 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 -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
Open=case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
### Images ###
type/^GIF
Include=image
type/^JPEG
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 >dev/null 2>&1 &)
shell/.xbm
Open=bitmap %f
shell/.xpm
Include=image
View=sxpm %f
shell/.ico
Include=image
regex/\.([Xx][Cc][Ff])$
Include=image
regex/\.([Ss][Vv][Gg])$
Include=image
regex/\.([Pp][Nn][Gg])$
Include=image
regex/\.([Jj][Pp][Gg])$
Include=image
regex/\.([Ss][Vv][Gg][Zz])$
Include=image
include/image
Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f >/dev/null 2>&1 &); fi
View=%view{ascii} identify %f
#View=%view{ascii} asciiview %f
Edit=(gimp %f >/dev/null 2>&1)&
# Diagrams
regex/\.([Dd][Ii][Aa])$
Open=(dia %f &>/dev/null)&
regex/\.([Vv][Ss][Dd])$
Open=(lodraw %f &>/dev/null)&
### 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=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
Open=mplayer %f
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=mikmod %f
#Open=tracker %f
regex/\.([wW][aA][wW]22)$
# Open=vplay -s 22 %f
Open=mplayer %f
regex/\.([mM][pP]3)$
# Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
Open=mplayer %f
View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
regex/\.([oO][gG][gG|aA|vV|xX])$
# Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
Open=mplayer %f
View=%view{ascii} ogginfo %s
regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
Open=timidity %f
regex/\.([wW][mM][aA])$
# Open=mplayer -vo null %f
Open=mplayer %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 >/dev/null 2>&1 &); 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/\.([fF][lL][iIcCvV])$
Include=video
regex/\.([oO][gG][mM])$
Include=video
regex/\.([Mm][Kk][Vv])$
Include=video
regex/\.([rR][aA]?[mM])$
Open=(realplay %f >/dev/null 2>&1 &)
regex/\.([mM]4[vV])$
Include=video
regex/\.([3][Gg][Pp])$
Include=video
include/video
Open=(mplayer %f &>/dev/null)&
Edit=mplayer -fs %f
#Edit=echo %p
#View=echo "%d/%p"|cut -d# -f2|sed s/:/':\/\/'/
#Open=(gtv %f >/dev/null 2>&1 &)
#Open=(xanim %f >/dev/null 2>&1 &)
### Documents ###
# Postscript
type/^PostScript
#Open=(gv %f &)
Open=(evince %f &>/dev/null)&
View=%view{ascii} ps2ascii %f
# PDF
type/^PDF
#Open=(xpdf %f &)
Open=(evince %f &>/dev/null)&
#Open=(acroread %f &)
#Open=(ghostview %f &)
View=%view{ascii} pdftotext %f -
# DJVU
regex/\.([Dd][Jj][Vv][Uu])$
Open=(evince %f &>/dev/null)&
regex/\.([Dd][Jj][Vv])$
Open=(evince %f &>/dev/null)&
# CHM
regex/\.([Cc][Hh][Mm])$
Open=(chmsee %f >/dev/null 2>&1 &)
# Maple
regex/\.([Mm][Ww][Ss]|[Mm][Ww])$
Open=(xmaple %f >/dev/null 2>&1)&
# LabView file
regex/\.([Vv][Ii])$
Open=(labview-8.6 %f >/dev/null 2>&1)&
regex/\.([Ll][Vv][Pp][Rr][Oo][Jj])$
Open=(labview-8.6 %f >/dev/null 2>&1)&
# 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.
# html
regex/\.([hH][tT][mM][lL]?)$
#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
Open=(firefox %f &)
View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
Edit=(geany %f &>/dev/null 2>&1 &)
# htm
regex/\.([hH][tT][mM]?)$
#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
Open=(firefox %f &)
View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
Edit=(geany %f &>/dev/null 2>&1 &)
# swf
regex/\.([Ss][Ww][Ff]?)$
Open=(firefox %f >/dev/null 2)&
# StarOffice 5.2
shell/.sdw
Open=(lobase %f >/dev/null 2>&1)&
# 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=(lobase %f >/dev/null 2>&1)&
View=%view{ascii} odt2txt %f
# OpenOffice presentaion documents
regex/\.([Pp][Pp][Tt])$
Open=(loimpress %f >/dev/null 2>&1)&
# AbiWord
shell/.abw
Open=(abiword %f &)
# Microsoft Word Document
regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
#Open=(abiword %f >/dev/null 2>&1 &)
Open=(lobase %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 &)
Open=(lobase %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=(abiword %f >/dev/null 2>&1 &)
Open=(lobase %f >/dev/null 2>&1)&
# Microsoft Excel Worksheet
regex/\.([xX][lL][sSwW])$
#Open=(gnumeric %f >/dev/null 2>&1 &)
Open=(lobase %f >/dev/null 2>&1)&
View=%view{ascii} xls2csv %f || strings %f
type/^Microsoft\ Excel
#Open=(gnumeric %f >/dev/null 2>&1 &)
Open=(lobase %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=(lobase %f >/dev/null 2>&1)&
# Framemaker
type/^FrameMaker
Open=fmclient -f %f
# DVI
regex/\.([dD][vV][iI])$
#Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (evince %f &); fi
View=%view{ascii} dvi2tty %f
# TeX
regex/\.([Tt][Ee][Xx])$
Open=%var{EDITOR:vi} %f
# Lyx
regex/\.([Ll][Yy][Xx])$
Open=(lyx %f &>/dev/null)&
### 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
# Disk images for Commodore computers (VIC20, C64, C128)
regex/\.(d64|D64)$
Open=%cd %p/uc://1541
View=%view{ascii} c1541 %f -list
Extract=c1541 %f -extract
# Glade, a user interface designer for GTK+ and GNOME
regex/\.([Gg][Ll][Aa][Dd][Ee])$
Open=if glade-3 --version >/dev/null 2>&1; then (glade-3 %f >/dev/null 2>&1 &); else (glade-2 %f >/dev/null 2>&1 &); fi
### Plain compressed files ###
# ace
regex/\.(ace|ACE)$
Open=%cd %p/uace://
View=%view{ascii} unace l %f
Extract=unace x %f
# arc
regex/\.(arc|ARC)$
Open=%cd %p/uarc://
View=%view{ascii} arc l %f
Extract=arc x %f '*'
Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
# 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 | %var{PAGER:more}
View=%view{ascii} gzip -dc %f 2>/dev/null
regex/\.(gz|Z)?$
View=%view{ascii} gzip -dc %f 2>/dev/null
# bzip2
type/^bzip2
Open=bzip2 -dc %f | %var{PAGER:more}
View=%view{ascii} bzip2 -dc %f 2>/dev/null
regex/\.bz2?$
View=%view{ascii} bzip2 -dc %f 2>/dev/null
# bzip
type/^bzip
Open=bzip -dc %f | %var{PAGER:more}
View=%view{ascii} bzip -dc %f 2>/dev/null
# compress
type/^compress
Open=gzip -dc %f | %var{PAGER:more}
View=%view{ascii} gzip -dc %f 2>/dev/null
# lzma
regex/\.lzma$
Open=lzma -dc %f | %var{PAGER:more}
View=%view{ascii} lzma -dc %f 2>/dev/null
# xz
regex/\.xz$
Open=xz -dc %f | %var{PAGER:more}
View=%view{ascii} xz -dc %f 2>/dev/null
### Default ###
# Default target for anything not described above
default/*
Open=
View=
### EOF ###

6
.config/mc/mc.keymap Normal file
View File

@ -0,0 +1,6 @@
[main]
CmdDialogList = ctrl-alt-prime
[dialog]
CmdDialogList = ctrl-alt-prime

1
.config/mc/panels.ini Normal file
View File

@ -0,0 +1 @@

49
.gitconfig Normal file
View File

@ -0,0 +1,49 @@
[user]
email = mecareful@gmail.com
name = Kolan Sh
[color]
ui = auto
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
unstage = reset HEAD --
st = status
s = status -uno
ci = commit
di = diff -b
co = checkout
up = checkout
update = checkout
l = log
hgrevert = checkout
strip = reset --hard
branches = branch -a
pull = fetch
[instaweb]
local = true
httpd = lighttpd -f
port = 4321
browser = firefox
[merge]
tool = vimdiff

47
.grc/grc.conf Normal file
View File

@ -0,0 +1,47 @@
# anything to do with irc
\b\w+\b.*irc.*
conf.irclog
# log file
\b\w+\b.*log\b
conf.log
# ping command
(^|[/\w\.]+/)ping\s
conf.ping
# traceroute command
(^|[/\w\.]+/)traceroute\s
conf.traceroute
# gcc command
(^|[/\w\.]+/)(g?cc|[gc]\+\+)\s
conf.gcc
# configure command
(^|[/\w\.]+/)configure
conf.configure
# make command
(^|[/\w\.]+/)g?make\s?
conf.gcc
# netstat command
(^|[/\w\.]+/)netstat\s?
conf.netstat
# diff command
(^|[/\w\.]+/)diff\s?
conf.diff
# last command
(^|[/\w\.]+/)last\s?
conf.log
# ldap tools
(^|[/\w\.]+/)ldap
conf.ldap
# cvs command
(^|[/\w\.]+/)cvs\s?
conf.cvs

16
.gtkrc-2.0 Normal file
View File

@ -0,0 +1,16 @@
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/Equinox/gtk-2.0/gtkrc"
style "user-font" {
font_name = "Liberation Sans 8"
}
widget_class "*" style "user-font"
gtk-font-name="Liberation Sans 8"
gtk-theme-name = "Equinox"
include "/home/kolan/.gtkrc.mine"
# -- THEME AUTO-WRITTEN DO NOT EDIT

83
.hgrc Normal file
View File

@ -0,0 +1,83 @@
[ui]
username = Kolan Sh <mecareful@gmail.com>
[hostfingerprints]
[ui]
verbose = true
merge = vimdiff
%include ~/.netrc.hg
[defaults]
cdiff = -q
branches =
churn = --progress
[extdiff]
cmd.cdiff = colordiff
opts.cdiff = -uprN
[extensions]
duckcharset = ~/.hgext/duckcharset/hgext/duckcharset.py
onsub= ~/.hgext/onsub/onsub.py
compass = ~/.hgext/compass/compass.py
hggit = ~/.hgext/hg-git/hggit
# fixcase = ~/.hgext/fixcase/fixcase.py
hgext.bookmarks =
eol =
graphlog=
graphlog =
highlight=
color =
#rebase=
transplant=
extdiff=
record=
fetch=
convert=
# brokes .hgignore (for example in /.hg)
#largefiles =
pager =
parentrevspec =
progress =
purge=
rebase =
relink =
schemes=
mq =
churn =
[web]
pygments_style=tango
[merge-tools]
vimdiff.executable = vim
vimdiff.args = -d $base $local $output $other +close +close
[git]
intree=1
exportbranch=refs/heads/from-hg
[web]
cacerts=
[largefiles]
minsize = 1
[pager]
pager = LESS='FSRX' less
quiet = True
attend = annotate, cat, diff, export, glog, log, qdiff, compass, tags, help
[progress]
delay = 3
changedelay = 1
refresh = 0.1
clear-complete = True
disable = False
assume-tty = False
[subpaths]
http[s]?://(.*)/(.*)/../(.*) = https://\1/\2/\3
http[s]?://(.*)/(.*)/(.*) = https://\1/\2/../\3

23
.htoprc Normal file
View File

@ -0,0 +1,23 @@
# Beware! This file is rewritten every time htop exits.
# The parser is also very primitive, and not human-friendly.
# (I know, it's in the todo list).
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=39
sort_direction=1
hide_threads=0
hide_kernel_threads=0
hide_userland_threads=0
shadow_other_users=1
show_thread_names=1
highlight_base_name=1
highlight_megabytes=1
highlight_threads=1
tree_view=1
header_margin=1
detailed_cpu_time=1
color_scheme=0
delay=15
left_meters=AllCPUs Memory Swap CPU
left_meter_modes=1 1 1 1
right_meters=Tasks LoadAverage Uptime Clock Memory Battery
right_meter_modes=2 2 2 2 2 2

102
.links/links.cfg Normal file
View File

@ -0,0 +1,102 @@
# This file is automatically generated by Links -- please do not edit.
async_dns 1
download_utime 0
max_connections 10
max_connections_to_host 8
retries 3
receive_timeout 120
unrestartable_receive_timeout 600
format_cache_size 5
memory_cache_size 1M
image_cache_size 1M
font_cache_size 2M
http_proxy ""
ftp_proxy ""
socks_proxy ""
-append_text_to_dns_lookups ""
only_proxies 0
download_dir ""
language "Russian"
http_bugs.http10 0
http_bugs.allow_blacklist 1
http_bugs.bug_302_redirect 1
http_bugs.bug_post_no_keepalive 0
http_bugs.no_accept_charset 0
http_bugs.no_compression 0
http_bugs.retry_internal_errors 0
http_bugs.aggressive_cache 1
http_referer 0
fake_referer ""
fake_useragent ""
http.extra_header ""
ftp.anonymous_password "somebody@host.domain"
ftp.use_passive 0
ftp.fast 0
ftp.set_iptos 1
menu_font_size 16
background_color 14737632
foreground_color 0
scroll_bar_area_color 12632256
scroll_bar_bar_color 0
scroll_bar_frame_color 0
display_red_gamma 2.2000
display_green_gamma 2.2000
display_blue_gamma 2.2000
user_gamma 1.0000
bfu_aspect 1.0000
aspect_on 1
dither_letters 1
dither_images 1
display_optimize 0
gamma_correction 2
enable_javascript 1
verbose_javascript_errors 0
verbose_javascript_warnings 0
enable_all_conversions 1
enable_global_resolution 1
javascript_manual_confirmation 1
js_recursion_depth 100
js_memory_limit 5k
bookmarks_codepage us-ascii
bookmarks_file "/home/kolan/.links/bookmarks.html"
terminal "rxvt-unicode" 0 1 0 koi8-r
terminal "rxvt" 0 1 0 utf-8
extension "aif,aiff,aifc" "audio/x-aiff"
extension "au,snd" "audio/basic"
extension "avi" "video/x-msvideo"
extension "deb" "application/x-debian-package"
extension "dl" "video/dl"
extension "dxf" "application/dxf"
extension "dvi" "application/x-dvi"
extension "fli" "video/fli"
extension "g" "application/brlcad"
extension "gbr" "application/gerber"
extension "gif" "image/gif"
extension "gl" "video/gl"
extension "grb" "application/gerber"
extension "jpg,jpeg,jpe" "image/jpeg"
extension "mid,midi" "audio/midi"
extension "mpeg,mpg,mpe" "video/mpeg"
extension "pbm" "image/x-portable-bitmap"
extension "pcb" "application/pcb"
extension "pdf" "application/pdf"
extension "pgm" "image/x-portable-graymap"
extension "pgp" "application/pgp-signature"
extension "png" "image/png"
extension "pnm" "image/x-portable-anymap"
extension "ppm" "image/x-portable-pixmap"
extension "ppt" "application/powerpoint"
extension "ps,eps,ai" "application/postscript"
extension "qt,mov" "video/quicktime"
extension "ra,rm,ram" "audio/x-pn-realaudio"
extension "rtf" "application/rtf"
extension "sch" "application/gschem"
extension "svg" "image/svg"
extension "swf" "application/x-shockwave-flash"
extension "sxw" "application/x-openoffice"
extension "tga" "image/targa"
extension "tiff,tif" "image/tiff"
extension "wav" "audio/x-wav"
extension "xbm" "image/x-xbitmap"
extension "xls" "application/excel"
extension "xpm" "image/x-xpixmap"

View File

@ -0,0 +1,146 @@
# Please, use this skin in UTF-8 system codepage only.
[skin]
description=klmn-0
[Lines]
horiz=
vert=
lefttop=
righttop=
leftbottom=
rightbottom=
topmiddle=
bottommiddle=
leftmiddle=
rightmiddle=
cross=
dhoriz=
dvert=
dlefttop=
drighttop=
dleftbottom=
drightbottom=
dtopmiddle=
dbottommiddle=
dleftmiddle=
drightmiddle=
[core]
_default_=lightgray;default
selected=black;cyan
marked=yellow;default
markselect=yellow;cyan
gauge=white;black
input=black;cyan
inputunchanged=gray;cyan
inputmark=cyan;black
disabled=gray;lightgray
reverse=black;lightgray
commandlinemark=black;lightgray
header=yellow;default
inputhistory=
commandhistory=
[dialog]
_default_=black;lightgray
dfocus=black;cyan
dhotnormal=black;lightgray
dhotfocus=black;cyan
dtitle=blue;lightgray
[error]
_default_=white;red
errdfocus=black;lightgray
errdhotnormal=white:red
errdhotfocus=white;red
errdtitle=yellow;red
[filehighlight]
directory=white;
executable=brightgreen;
symlink=lightgray;
stalelink=brightred;
device=brightmagenta;
special=black;
core=red;
temp=gray;
archive=brightmagenta;
doc=brown;
source=cyan;
media=green;
graph=brightcyan;
database=brightred;
[menu]
_default_=white;default
menuhot=white;default
menusel=white;cyan
menuhotsel=white;cyan
menuinactive=black;cyan
[buttonbar]
hotkey=green,blue
button=black;cyan
[statusbar]
_default_=black;cyan
[help]
_default_=black;lightgray
helpitalic=red;lightgray
helpbold=blue;lightgray
helplink=black;cyan
helpslink=yellow;blue
helptitle=blue;lightgray
[editor]
_default_=lightgray;default
editbold=yellow;brightgreen
editmarked=black;cyan
editwhitespace=brightdefault;default
editlinestate=white;cyan
bookmark=white;red
bookmarkfound=black;green
editrightmargin=brightdefault;black
[viewer]
viewbold=yellow;default
viewunderline=brightred;default
viewselected=yellow;cyan
[diffviewer]
added=white;green
changedline=blue;cyan
changednew=red;cyan
changed=white;cyan
removed=white;red
folder=blue;black
error=red;white
[popupmenu]
_default_=white;cyan
menusel=white;black
menutitle=white;cyan
[widget-common]
sort-sign-up =
sort-sign-down =
[widget-panel]
hiddenfiles-sign-show =
hiddenfiles-sign-hide =
history-prev-item-sign = «
history-next-item-sign = »
history-show-list-sign = ^
horiz=
vert=
lefttop=
righttop=
leftbottom=
rightbottom=
topmiddle=
bottommiddle=
leftmiddle=
rightmiddle=
cross=

21
.screenrc Normal file
View File

@ -0,0 +1,21 @@
# Отключаем приветствие
startup_message off
# Включаем utf8
defutf8 on
# Использовать визуальный сигнал (мигание экрана) вместо писка динамика
vbell on
# Размер буфера прокрутки
defscrollback 1000
# Производить отключение сессии при разрыве связи с терминалом
autodetach on
# Открывать Login-шелл
shell -$SHELL
# Активировать возможность прокрутки в xterm (и других эмуляторах терминала)
termcapinfo urxvt* ti@:te@
# Волшебная строка
shelltitle '$ |sh'
# Строка состояния
hardstatus alwayslastline "%{+b wk} %c $LOGNAME@%H %=[ %w ] "
# По клавише <Esc> создать окно и запустить в нем команду su
bind \033 screen -ln -t root 9 su

35
.tmux.conf Normal file
View File

@ -0,0 +1,35 @@
# Vim keys
bind s split-window -v
bind v split-window -h
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
bind : command-prompt
# vi-style controls for copy mode
setw -g mode-keys vi
set -g default-terminal "screen-256color"
bind-key R respawn-window
# create a session with a throw-away window
new true
#
# # for future windows, stay open after the command exits
#set set-remain-on-exit on
#
# # create the windows we really want
neww -n vim
splitw -v -p 20 -t 0
#
# # for future windows, revert r-o-e to global value
#set -u set-remain-on-exit
#splitw -v -p 85 -t 0 ls
#selectw -t 1
#selectp -t 0

1
.valgrindrc Normal file
View File

@ -0,0 +1 @@
--tool=callgrind --verbose --track-fds=yes --trace-children=yes --time-stamp=yes

0
.vim/plugin/.keep Normal file
View File

7
.vimperatorrc Normal file
View File

@ -0,0 +1,7 @@
"3.2 (created: 2011/06/03 11:51:34)
source! /home/kolan/.vimperatorrc.local
" vim: set ft=vimperator:
map <C-S-p> :tabm -1<CR>
map <C-S-n> :tabm +1<CR>

118
.vimrc Normal file
View File

@ -0,0 +1,118 @@
" http://kastaneda.kiev.ua/desktop/dotrc/vim.html
" общие настройки
syntax on " включить подсветку синтаксиса
set ts=8 " у меня табуляция (tabstop) 4 символа
set tabstop=8
set shiftwidth=8
set textwidth=8
set autoindent
set tw=159
set copyindent
" set expandtab
set background=dark " весьма важная штука! :)
set lbr
set showcmd
set nocompatible " обойдёмся без стандартного vi
set backspace=indent,eol,start
color desert
set number
nmap <F6> :set invlist<cr>
" отключение бэкапов
set nobackup
" set backup
" set backupdir=$HOME/.vim/backups
" set directory=$HOME/.vim/temp
" чтобы курсор не прыгал, а вёл себя так, как kwrite и т.п.
nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk
nnoremap <Down> gj
nnoremap <Up> gk
vnoremap <Down> gj
vnoremap <Up> gk
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
" файлы автоматом делаются исполняемыми
function ModeChange()
if getline(1) =~ "^#!"
if getline(1) =~ "/bin/"
silent !chmod a+x <afile>
endif
endif
endfunction
au BufWritePost * call ModeChange()
" интуитивные горячие клавиши =)
imap <F11> <Esc>:set<Space>nu!<CR>a
nmap <F11> :set<Space>nu!<CR>
nmap <F2> :w<cr>
vmap <F2> <esc>:w<cr>i
imap <F2> <esc>:w<cr>i
nmap <F10> :q!<cr>
vmap <F10> <esc>:q!<cr>i
imap <F10> <esc>:q!<cr>i
" вкладки
:set tabpagemax=99
nmap <C-a> :tabnew<cr>
imap <C-a> <ESC>:tabnew<cr>
map <C-k> :tabnext<cr>
nmap <C-k> :tabnext<cr>
imap <C-k> :tabnext<cr>
map <C-j> :tabprev<cr>
nmap <C-j> :tabprev<cr>
imap <C-j> :tabprev<cr>
" кириллица
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set wildmenu
set wcm=<Tab>
menu Encoding.CP1251 :e ++enc=cp1251<CR>
menu Encoding.CP866 :e ++enc=cp866<CR>
menu Encoding.KOI8-U :e ++enc=koi8-u<CR>
menu Encoding.UTF-8 :e ++enc=utf-8<CR>
map <F8> :emenu Encoding.<TAB>
" вкл/выкл автоперенос
set pastetoggle=<F5>
" set paste
" nmap <F6> :set noautoindent<cr>
" imap <F6> :set noautoindent<cr>
" nmap <F5> :set autoindent<cr>
" imap <F5> :set autoindent<cr>
" inoremap <silent> <C-u> <ESC>u:set paste<CR>.:set nopaste<CR>gi " чтобы отступы не съезжали при вставке из буфера X Window
" FONT SIZE SHORTCUTS
set guifont=Liberation\ Mono\ 8
let g:MyFontSize = 8
function! ToggleMyFontSize()
if ( g:MyFontSize == 10 )
let g:MyFontSize = 8
elseif ( g:MyFontSize == 8 )
let g:MyFontSize = 9
elseif ( g:MyFontSize == 9 )
let g:MyFontSize = 10
endif
execute "set guifont=Liberation\\ Mono\\ ".g:MyFontSize
endfunction
nnoremap <silent> <F12> :call ToggleMyFontSize()<CR>
" теги
set tags+=./.ctags
set tags+=~/.big/ctags
cscope add ./.cscope
cscope add ~/.big/cscope
map <F4> [I:let nr = input("Which one: ")<Bar>exe "normal " . nr ."[\t"<CR>
" Foldging
set foldenable
set foldmethod=syntax