]> git.phdru.name Git - dotfiles.git/log
dotfiles.git
8 years ago.profile, .shellrc: test $BASH_VERSION instead of $SHELL
Oleg Broytman [Thu, 7 Jul 2016 23:40:28 +0000 (02:40 +0300)]
.profile, .shellrc: test $BASH_VERSION instead of $SHELL

Test $BASH_VERSION instead of $SHELL in case bash is executed as /bin/sh.

8 years ago.shellrc: use '() {' syntax for functions
Oleg Broytman [Thu, 7 Jul 2016 22:52:16 +0000 (01:52 +0300)]
.shellrc: use '() {' syntax for functions

Opening '{' must be on the same line.

8 years ago.tmux.conf: add reasonable binding for h/v split
Oleg Broytman [Thu, 7 Jul 2016 20:22:59 +0000 (23:22 +0300)]
.tmux.conf: add reasonable binding for h/v split

8 years ago.tmux.conf: move bindings after settings
Oleg Broytman [Thu, 7 Jul 2016 20:22:22 +0000 (23:22 +0300)]
.tmux.conf: move bindings after settings

8 years ago.shellrc: allow directory URLs to begin with ../
Oleg Broytman [Thu, 7 Jul 2016 16:48:01 +0000 (19:48 +0300)]
.shellrc: allow directory URLs to begin with ../

8 years ago.shellrc: define completion for git-open - list remotes with http(s) URLs
Oleg Broytman [Thu, 7 Jul 2016 15:30:10 +0000 (18:30 +0300)]
.shellrc: define completion for git-open - list remotes with http(s) URLs

8 years ago.shellrc: define completion for cdremote
Oleg Broytman [Thu, 7 Jul 2016 15:28:16 +0000 (18:28 +0300)]
.shellrc: define completion for cdremote

List remotes with directories as URLs.

8 years ago.shellrc: add function cdremote
Oleg Broytman [Thu, 7 Jul 2016 15:26:52 +0000 (18:26 +0300)]
.shellrc: add function cdremote

Change current directory to a remote's directory
(if the remote is on the local FS).

8 years ago.shellrc: move some functions to the end (alphabetically)
Oleg Broytman [Thu, 7 Jul 2016 14:27:11 +0000 (17:27 +0300)]
.shellrc: move some functions to the end (alphabetically)

8 years ago.tmux.conf: display "Reloaded!" after reloading config
Oleg Broytman [Wed, 6 Jul 2016 23:42:20 +0000 (02:42 +0300)]
.tmux.conf: display "Reloaded!" after reloading config

8 years ago.vimrc: automatically close quickfix if it's the only window left
Oleg Broytman [Wed, 6 Jul 2016 20:37:54 +0000 (23:37 +0300)]
.vimrc: automatically close quickfix if it's the only window left

8 years ago.mc/menu: rsync -v
Oleg Broytman [Mon, 4 Jul 2016 18:09:48 +0000 (21:09 +0300)]
.mc/menu: rsync -v

8 years ago.gitconfig: use long options
Oleg Broytman [Mon, 4 Jul 2016 11:08:16 +0000 (14:08 +0300)]
.gitconfig: use long options

8 years ago.gitconfig: update some aliases from gitalias
Oleg Broytman [Sun, 3 Jul 2016 18:56:11 +0000 (21:56 +0300)]
.gitconfig: update some aliases from gitalias

8 years ago.gdbinit: add a link to gdb-dashboard
Oleg Broytman [Thu, 30 Jun 2016 20:20:58 +0000 (23:20 +0300)]
.gdbinit: add a link to gdb-dashboard

8 years ago.mc/menu: handle tar.z, tar.Z, tz, tbz2, tar.7z extensions
Oleg Broytman [Mon, 27 Jun 2016 17:19:29 +0000 (20:19 +0300)]
.mc/menu: handle tar.z, tar.Z, tz, tbz2, tar.7z extensions

8 years ago.mc/menu: optimize regular expressions
Oleg Broytman [Mon, 27 Jun 2016 17:18:50 +0000 (20:18 +0300)]
.mc/menu: optimize regular expressions

8 years ago.gitconfig: update aliases
Oleg Broytman [Sat, 25 Jun 2016 21:13:42 +0000 (00:13 +0300)]
.gitconfig: update aliases

8 years ago.gitconfig: copied some aliases from gitalias.com
Oleg Broytman [Sat, 25 Jun 2016 21:11:13 +0000 (00:11 +0300)]
.gitconfig: copied some aliases from gitalias.com

8 years ago.shellrc: add pyenv virtualenv init; comment out pyenv
Oleg Broytman [Thu, 23 Jun 2016 17:42:34 +0000 (20:42 +0300)]
.shellrc: add pyenv virtualenv init; comment out pyenv

8 years ago.shellrc: remove pip's tmp directory
Oleg Broytman [Tue, 21 Jun 2016 22:45:20 +0000 (01:45 +0300)]
.shellrc: remove pip's tmp directory

8 years ago.vim: Change color
Oleg Broytman [Tue, 21 Jun 2016 03:20:21 +0000 (06:20 +0300)]
.vim: Change color

8 years ago.vim: change colors
Oleg Broytman [Wed, 15 Jun 2016 02:00:53 +0000 (05:00 +0300)]
.vim: change colors

8 years ago.vim: change color; make synload.vim a colorscheme
Oleg Broytman [Tue, 14 Jun 2016 01:24:36 +0000 (04:24 +0300)]
.vim: change color; make synload.vim a colorscheme

8 years ago.vim: change colors
Oleg Broytman [Sun, 12 Jun 2016 12:02:00 +0000 (15:02 +0300)]
.vim: change colors

8 years ago.vim: remove old unused file type
Oleg Broytman [Sun, 12 Jun 2016 14:01:48 +0000 (17:01 +0300)]
.vim: remove old unused file type

8 years ago.vim: fix comment
Oleg Broytman [Sun, 12 Jun 2016 14:01:25 +0000 (17:01 +0300)]
.vim: fix comment

8 years ago.vim: change colors
Oleg Broytman [Sun, 12 Jun 2016 12:02:00 +0000 (15:02 +0300)]
.vim: change colors

8 years agoAdd vim.sh
Oleg Broytman [Sun, 12 Jun 2016 12:00:32 +0000 (15:00 +0300)]
Add vim.sh

This simple script starts vim with any file even if the filename begins
with a minus/dash.

8 years ago.muttrc: do not set From: to avoid rejection by google anti-spam
Oleg Broytman [Sun, 12 Jun 2016 11:11:33 +0000 (14:11 +0300)]
.muttrc: do not set From: to avoid rejection by google anti-spam

8 years ago.muttrc: "close" backtick to fix color highlighting in vim
Oleg Broytman [Sun, 12 Jun 2016 11:09:53 +0000 (14:09 +0300)]
.muttrc: "close" backtick to fix color highlighting in vim

8 years ago.fvwm2rc: call XsetbgFilename in StartStandardSession
Oleg Broytman [Fri, 10 Jun 2016 13:41:42 +0000 (16:41 +0300)]
.fvwm2rc: call XsetbgFilename in StartStandardSession

8 years ago.fvwm2rc: refactor XsetbgFilename
Oleg Broytman [Fri, 10 Jun 2016 13:40:55 +0000 (16:40 +0300)]
.fvwm2rc: refactor XsetbgFilename

8 years agounzip.py: minor refactoring
Oleg Broytman [Fri, 10 Jun 2016 13:20:40 +0000 (16:20 +0300)]
unzip.py: minor refactoring

8 years ago.inputrc: exchange Up/Dn and PgUp/PgDn keys
Oleg Broytman [Wed, 8 Jun 2016 22:02:44 +0000 (01:02 +0300)]
.inputrc: exchange Up/Dn and PgUp/PgDn keys

Make history walking/searching more vim-like

8 years ago.fvwmrc: add menu item for big grey utf8 term
Oleg Broytman [Mon, 6 Jun 2016 13:04:59 +0000 (16:04 +0300)]
.fvwmrc: add menu item for big grey utf8 term

8 years ago.inputrc: update
Oleg Broytman [Sun, 5 Jun 2016 21:22:36 +0000 (00:22 +0300)]
.inputrc: update

8 years ago.shellrc: source virtualenvwrapper_lazy and pyenv
Oleg Broytman [Sun, 5 Jun 2016 20:57:07 +0000 (23:57 +0300)]
.shellrc: source virtualenvwrapper_lazy and pyenv

8 years ago.shellrc: micro refactoring - move some code below
Oleg Broytman [Sun, 5 Jun 2016 20:56:29 +0000 (23:56 +0300)]
.shellrc: micro refactoring - move some code below

8 years agounzip.py: optimization
Oleg Broytman [Sun, 5 Jun 2016 13:44:14 +0000 (16:44 +0300)]
unzip.py: optimization

Use shutil.copyfileobj() to copy big files by small chunks.

8 years ago.gitconfig: add push2all alias to push to all remotes
Oleg Broytman [Fri, 3 Jun 2016 21:51:12 +0000 (00:51 +0300)]
.gitconfig: add push2all alias to push to all remotes

8 years ago.gitconfig: set push.default = simple
Oleg Broytman [Fri, 3 Jun 2016 21:50:37 +0000 (00:50 +0300)]
.gitconfig: set push.default = simple

8 years agoinit.py: use only HISTSIZE, not HISTFILESIZE
Oleg Broytman [Fri, 3 Jun 2016 12:56:54 +0000 (15:56 +0300)]
init.py: use only HISTSIZE, not HISTFILESIZE

HISTSIZE give the size in lines, HISTFILESIZE in bytes.

8 years ago.profile: copy some code and comments from Debian /etc/skel
Oleg Broytman [Fri, 3 Jun 2016 12:56:03 +0000 (15:56 +0300)]
.profile: copy some code and comments from Debian /etc/skel

8 years ago.shellrc: install pip completion
Oleg Broytman [Thu, 2 Jun 2016 22:47:56 +0000 (01:47 +0300)]
.shellrc: install pip completion

8 years ago.vim: Recognize all git temporary commit files
Oleg Broytman [Tue, 31 May 2016 15:07:30 +0000 (18:07 +0300)]
.vim: Recognize all git temporary commit files

8 years ago.vim: Remove old unused macro
Oleg Broytman [Tue, 31 May 2016 15:06:50 +0000 (18:06 +0300)]
.vim: Remove old unused macro

8 years agoRename phd.m4 -> main.m4
Oleg Broytman [Sat, 21 May 2016 17:39:31 +0000 (20:39 +0300)]
Rename phd.m4 -> main.m4

8 years ago.fvwm2rc (m4): remove LC_CTYPE
Oleg Broytman [Sat, 21 May 2016 17:38:42 +0000 (20:38 +0300)]
.fvwm2rc (m4): remove LC_CTYPE

8 years agoRename *-history to *_history
Oleg Broytman [Sun, 15 May 2016 13:39:15 +0000 (16:39 +0300)]
Rename *-history to *_history

8 years ago.hgrc: pass options -FSX to less
Oleg Broytman [Sat, 14 May 2016 22:30:09 +0000 (01:30 +0300)]
.hgrc: pass options -FSX to less

8 years ago.gitconfig: add incoming/outgoing aliases
Oleg Broytman [Sat, 14 May 2016 22:23:46 +0000 (01:23 +0300)]
.gitconfig: add incoming/outgoing aliases

8 years ago.gitconfig: simplify camend alias
Oleg Broytman [Thu, 12 May 2016 14:46:57 +0000 (17:46 +0300)]
.gitconfig: simplify camend alias

8 years ago.muttrc: avoid <Enter><exit>
Oleg Broytman [Sun, 8 May 2016 17:12:05 +0000 (20:12 +0300)]
.muttrc: avoid <Enter><exit>

<Enter><exit> trick doesn't work in empty folders.

8 years agoinit.py: adapt to Py 3
Oleg Broytman [Sat, 7 May 2016 10:29:35 +0000 (13:29 +0300)]
init.py: adapt to Py 3

8 years agoPass -FSX options to pager less
Oleg Broytman [Fri, 6 May 2016 15:43:03 +0000 (18:43 +0300)]
Pass -FSX options to pager less

Some full-screen programs (like mutt) redraw the screen after 'less'
exists so the default must not contain option -F. -F and -X are
recommended for command-line programs that can produce a lot of output.
Option -S is recommended for wide output.

'git' became a shell wrapper for the real git to allow calling it from
other scripts.

8 years ago.vimrc: set ttimeoutlen=100
Oleg Broytman [Sun, 1 May 2016 21:38:08 +0000 (00:38 +0300)]
.vimrc: set ttimeoutlen=100

8 years ago.gitconfig: use long options
Oleg Broytman [Fri, 29 Apr 2016 13:46:14 +0000 (16:46 +0300)]
.gitconfig: use long options

8 years agoinit.py: add an example of using cgitb.enable
Oleg Broytman [Thu, 21 Apr 2016 19:34:50 +0000 (22:34 +0300)]
init.py: add an example of using cgitb.enable

8 years agoinit.py: pass options '-F', '-R' and '-X' to 'less'
Oleg Broytman [Wed, 20 Apr 2016 13:38:39 +0000 (16:38 +0300)]
init.py: pass options '-F', '-R' and '-X' to 'less'

8 years agoinit.py: colorize traceback in pager
Oleg Broytman [Tue, 19 Apr 2016 10:51:31 +0000 (13:51 +0300)]
init.py: colorize traceback in pager

8 years agoinit.py: use pager to view a (possibly quite long) traceback
Oleg Broytman [Tue, 19 Apr 2016 10:30:07 +0000 (13:30 +0300)]
init.py: use pager to view a (possibly quite long) traceback

8 years agoinit.py: refactor paging
Oleg Broytman [Tue, 19 Apr 2016 10:27:21 +0000 (13:27 +0300)]
init.py: refactor paging

8 years agoinit.py: fix: restore rlcompleter
Oleg Broytman [Tue, 19 Apr 2016 10:26:24 +0000 (13:26 +0300)]
init.py: fix: restore rlcompleter

Import of rlcompleter is required for completion of attributes.

8 years agoinit.py: pipe output to pager
Oleg Broytman [Tue, 19 Apr 2016 09:53:26 +0000 (12:53 +0300)]
init.py: pipe output to pager

8 years agoinit.py: minor refactoring: move displayhook
Oleg Broytman [Tue, 19 Apr 2016 09:32:54 +0000 (12:32 +0300)]
init.py: minor refactoring: move displayhook

8 years ago.gdbinit: set history filename
Oleg Broytman [Tue, 19 Apr 2016 09:30:55 +0000 (12:30 +0300)]
.gdbinit: set history filename

8 years agoinit.py, pdbrc.py: fix flake8 warnings
Oleg Broytman [Tue, 19 Apr 2016 09:29:47 +0000 (12:29 +0300)]
init.py, pdbrc.py: fix flake8 warnings

8 years agoinit.py: restore links to the origin of borrowed code
Oleg Broytman [Tue, 19 Apr 2016 09:28:48 +0000 (12:28 +0300)]
init.py: restore links to the origin of borrowed code

8 years ago.fvwmrc: increase pause
Oleg Broytman [Sun, 31 Jan 2016 22:38:08 +0000 (01:38 +0300)]
.fvwmrc: increase pause

8 years ago.muttrc: add descriptions to macros
Oleg Broytman [Thu, 7 Apr 2016 04:34:39 +0000 (07:34 +0300)]
.muttrc: add descriptions to macros

8 years ago.muttrc: fix a macro: 'n' is not a command
Oleg Broytman [Thu, 7 Apr 2016 04:22:01 +0000 (07:22 +0300)]
.muttrc: fix a macro: 'n' is not a command

'n' is not a command here but a reply to "Postpone?" question.

8 years ago.muttrc: change some macros
Oleg Broytman [Thu, 7 Apr 2016 04:02:20 +0000 (07:02 +0300)]
.muttrc: change some macros

Fix quotation. Replace command 'r' with '<reply>'.

8 years ago.muttrc: exchange M and <Esc>m keys
Oleg Broytman [Wed, 6 Apr 2016 18:38:42 +0000 (21:38 +0300)]
.muttrc: exchange M and <Esc>m keys

8 years ago.muttrc: rewrite macros using commands instead of keys
Oleg Broytman [Mon, 4 Apr 2016 22:23:01 +0000 (01:23 +0300)]
.muttrc: rewrite macros using commands instead of keys

Merge index/pager macros. Add <Esc>m macro to switch to sent-mail
folder.

8 years ago.profile: remove options -F and -X from LESS
Oleg Broytman [Tue, 29 Mar 2016 14:23:35 +0000 (17:23 +0300)]
.profile: remove options -F and -X from LESS

Option -F is especially painful when `less' is called from a TUI program
like `mutt' with a short input - less immediately exits and the TUI
program redraws the screen.

8 years ago.sqliterc: fix mode name
Oleg Broytman [Mon, 28 Mar 2016 19:43:12 +0000 (22:43 +0300)]
.sqliterc: fix mode name

8 years ago.profile: fix a bug in PS1 under screen/tmux: add a missed backslash
Oleg Broytman [Sat, 26 Mar 2016 23:29:23 +0000 (02:29 +0300)]
.profile: fix a bug in PS1 under screen/tmux: add a missed backslash

8 years ago.mc/menu: compress the current subdirectory to tar.{lzma,xz}
Oleg Broytman [Thu, 24 Mar 2016 15:31:14 +0000 (18:31 +0300)]
.mc/menu: compress the current subdirectory to tar.{lzma,xz}

8 years ago.gdbinit: pretty-print
Oleg Broytman [Wed, 23 Mar 2016 11:49:25 +0000 (14:49 +0300)]
.gdbinit: pretty-print

8 years ago.gitconfig: add cat, dump, file, type aliases
Oleg Broytman [Wed, 16 Mar 2016 00:17:50 +0000 (03:17 +0300)]
.gitconfig: add cat, dump, file, type aliases

8 years ago.gitconfig: add `alias' and `aliases' aliases
Oleg Broytman [Tue, 15 Mar 2016 23:57:49 +0000 (02:57 +0300)]
.gitconfig: add `alias' and `aliases' aliases

8 years ago.gitconfig: use function instead of subshell
Oleg Broytman [Tue, 15 Mar 2016 23:36:16 +0000 (02:36 +0300)]
.gitconfig: use function instead of subshell

Shell functions are more efficient than calling a new shell.

8 years ago.gitconfig: fix a bug in alias
Oleg Broytman [Tue, 15 Mar 2016 23:18:31 +0000 (02:18 +0300)]
.gitconfig: fix a bug in alias

It seems '}' must be escaped in aliases.

8 years ago.profile: verify that `less' exists
Oleg Broytman [Sat, 12 Mar 2016 21:57:11 +0000 (00:57 +0300)]
.profile: verify that `less' exists

Set PAGER to `more' if `less' doesn't exist.

8 years ago.vimrc: set titlestring
Oleg Broytman [Thu, 3 Mar 2016 15:48:19 +0000 (18:48 +0300)]
.vimrc: set titlestring

Display filename, modification flag, full path, argument list status,
the current user, host and program name (to distinguish vim/view/etc).

8 years ago.profile: use concatenation instead of `+=' for older shells
Oleg Broytman [Wed, 2 Mar 2016 20:24:38 +0000 (23:24 +0300)]
.profile: use concatenation instead of `+=' for older shells

8 years agoAdd .curlrc, .gdbinit, .wgetrc
Oleg Broytman [Wed, 24 Feb 2016 10:41:22 +0000 (13:41 +0300)]
Add .curlrc, .gdbinit, .wgetrc

8 years ago.bash_prompt: show success/error status of the previous command
Oleg Broytman [Wed, 24 Feb 2016 10:38:15 +0000 (13:38 +0300)]
.bash_prompt: show success/error status of the previous command

Show error code in case of an error.

8 years ago.bash_prompt: change colors and styles
Oleg Broytman [Wed, 24 Feb 2016 10:37:48 +0000 (13:37 +0300)]
.bash_prompt: change colors and styles

8 years ago.bash_prompt: change color definitions back to standard
Oleg Broytman [Wed, 24 Feb 2016 10:34:28 +0000 (13:34 +0300)]
.bash_prompt: change color definitions back to standard

8 years ago.bash_prompt: rename purple to magenta
Oleg Broytman [Wed, 24 Feb 2016 10:33:32 +0000 (13:33 +0300)]
.bash_prompt: rename purple to magenta

8 years ago.bash_prompt: add dim colors
Oleg Broytman [Wed, 24 Feb 2016 10:29:23 +0000 (13:29 +0300)]
.bash_prompt: add dim colors

8 years ago.bash_prompt: do not call git update-index
Oleg Broytman [Wed, 24 Feb 2016 10:27:16 +0000 (13:27 +0300)]
.bash_prompt: do not call git update-index

Avoid touching .git and triggering backup.

8 years agoAdd .bash_prompt
Oleg Broytman [Wed, 24 Feb 2016 10:22:23 +0000 (13:22 +0300)]
Add .bash_prompt

Downloaded from
https://github.com/necolas/dotfiles/blob/master/shell/bash_prompt

8 years ago.gitconfig: add aliases
Oleg Broytman [Tue, 23 Feb 2016 23:03:43 +0000 (02:03 +0300)]
.gitconfig: add aliases

branches, null-merge, remotes, ri, tags

8 years ago.shellrc: unset has_completion - it's no longer needed
Oleg Broytman [Tue, 23 Feb 2016 00:33:33 +0000 (03:33 +0300)]
.shellrc: unset has_completion - it's no longer needed

8 years ago.shellrc: save/reset/restore OPS1 for mc
Oleg Broytman [Mon, 22 Feb 2016 23:59:29 +0000 (02:59 +0300)]
.shellrc: save/reset/restore OPS1 for mc

8 years agoSplit .gitconfig into 2 color schemas for dark and light bg
Oleg Broytman [Mon, 22 Feb 2016 21:05:47 +0000 (00:05 +0300)]
Split .gitconfig into 2 color schemas for dark and light bg

8 years ago.profile: remove PROMPT_COMMAND, set titles from PS1
Oleg Broytman [Mon, 22 Feb 2016 18:10:31 +0000 (21:10 +0300)]
.profile: remove PROMPT_COMMAND, set titles from PS1