]> git.phdru.name Git - dotfiles.git/log
dotfiles.git
4 years ago.gitconfig: Add alias `mr`
Oleg Broytman [Mon, 26 Oct 2020 14:08:36 +0000 (17:08 +0300)]
.gitconfig: Add alias `mr`

`Gitlab` calls "pull requests" "merge requests"
and have different URLs for them.

4 years ago.fvwm: Add menu `OSMenu`
Oleg Broytman [Sun, 20 Sep 2020 23:16:15 +0000 (02:16 +0300)]
.fvwm: Add menu `OSMenu`

Add user mode suspend commands.

4 years ago.fvwm: Change menu `Utilities`
Oleg Broytman [Sun, 20 Sep 2020 23:10:36 +0000 (02:10 +0300)]
.fvwm: Change menu `Utilities`

Replace `qPDFview` with `evince`. Remove `gajim`. Uncomment `xcalc`.

4 years agoFeat(bash-prompt): Switch back to `prompt_git`
Oleg Broytman [Sat, 29 Aug 2020 12:44:48 +0000 (15:44 +0300)]
Feat(bash-prompt): Switch back to `prompt_git`

The problem with `__git_ps1` is it touches submodules;
that bad for backup.

4 years agoFeat(bash-prompt): Remove `[]`
Oleg Broytman [Sat, 29 Aug 2020 12:38:48 +0000 (15:38 +0300)]
Feat(bash-prompt): Remove `[]`

Shorten prompt and make it more similar to `__git_ps1`.

4 years agoFeat(bash-prompt): Reorder signs: `*+$%`
Oleg Broytman [Fri, 28 Aug 2020 23:30:14 +0000 (02:30 +0300)]
Feat(bash-prompt): Reorder signs: `*+$%`

Order signs the same way `__git_ps1` does.

4 years ago.fvwm: Run `screen` with full path
Oleg Broytman [Thu, 27 Aug 2020 01:58:34 +0000 (04:58 +0300)]
.fvwm: Run `screen` with full path

This is to work around a minor problem in my wrapper `bin/screen`.
Anyway my wrapper is meaningless for a situation
where the terminal is closed after `screen` exits.

4 years agobin/screen: Return exit code of `screen`, not `test`/`tput`
Oleg Broytman [Thu, 27 Aug 2020 02:01:10 +0000 (05:01 +0300)]
bin/screen: Return exit code of `screen`, not `test`/`tput`

4 years ago.shellrc: Allow to path arguments to `include`
Oleg Broytman [Thu, 27 Aug 2020 00:14:58 +0000 (03:14 +0300)]
.shellrc: Allow to path arguments to `include`

4 years agoRefactor(.shellrc)
Oleg Broytman [Thu, 27 Aug 2020 00:14:35 +0000 (03:14 +0300)]
Refactor(.shellrc)

4 years ago.shellrc: Renamed `run-all-hosts` -> `run-hosts`
Oleg Broytman [Thu, 27 Aug 2020 00:13:47 +0000 (03:13 +0300)]
.shellrc: Renamed `run-all-hosts` -> `run-hosts`

4 years ago.profile: Add a space after the simple `$PS1` prompt
Oleg Broytman [Mon, 24 Aug 2020 20:03:54 +0000 (23:03 +0300)]
.profile: Add a space after the simple `$PS1` prompt

4 years ago.profile: Add `$SHLVL` to simple `$PS1` prompt
Oleg Broytman [Mon, 24 Aug 2020 20:02:49 +0000 (23:02 +0300)]
.profile: Add `$SHLVL` to simple `$PS1` prompt

4 years ago.mc/menu: Remove `cgmem_nice`
Oleg Broytman [Fri, 21 Aug 2020 07:07:36 +0000 (10:07 +0300)]
.mc/menu: Remove `cgmem_nice`

4 years agoFeat(screen): Use `shelltitle` trick in `.screenrc`
Oleg Broytman [Fri, 21 Aug 2020 00:37:32 +0000 (03:37 +0300)]
Feat(screen): Use `shelltitle` trick in `.screenrc`

This was an experiment that only partially succeed:
In the simplest case `screen` changes the caption
to the name of the current program; but it doesn't see programs
that run deeper like programs started under `mc` or `vim`.

4 years agoFeat(bin/screen-defsession): Pass arguments
Oleg Broytman [Thu, 20 Aug 2020 23:11:49 +0000 (02:11 +0300)]
Feat(bin/screen-defsession): Pass arguments

4 years agoFix bash completion for OpenVPN
Oleg Broytman [Wed, 12 Aug 2020 07:18:59 +0000 (10:18 +0300)]
Fix bash completion for OpenVPN

4 years ago.shellrc: Update completion
Oleg Broytman [Tue, 11 Aug 2020 10:25:25 +0000 (13:25 +0300)]
.shellrc: Update completion

4 years ago.shellrc: Use `__git_ps1` if available
Oleg Broytman [Thu, 6 Aug 2020 21:32:15 +0000 (00:32 +0300)]
.shellrc: Use `__git_ps1` if available

And configure it to my taste.

4 years agobash_prompt: Test if `git` exists
Oleg Broytman [Fri, 31 Jul 2020 07:42:00 +0000 (10:42 +0300)]
bash_prompt: Test if `git` exists

4 years ago.muttrc: Fix macros
Oleg Broytman [Tue, 28 Jul 2020 06:11:44 +0000 (09:11 +0300)]
.muttrc: Fix macros

Still don't work with keypad arrows
but at least don't require to double 'x'es.

4 years agobash_prompt: Use the same symbols as `git-prompt.sh`
Oleg Broytman [Wed, 22 Jul 2020 23:04:56 +0000 (02:04 +0300)]
bash_prompt: Use the same symbols as `git-prompt.sh`

4 years ago.fvwm: Improve remote shells menus
Oleg Broytman [Wed, 22 Jul 2020 23:04:04 +0000 (02:04 +0300)]
.fvwm: Improve remote shells menus

4 years agoRefactor(.shellrc): Return early from `delegate_completion`
Oleg Broytman [Mon, 20 Jul 2020 07:46:05 +0000 (10:46 +0300)]
Refactor(.shellrc): Return early from  `delegate_completion`

Save one indent level.

4 years ago.shellrc: Check completion for `bg`, `fg`, `jobs` and `unset`
Oleg Broytman [Mon, 20 Jul 2020 07:44:12 +0000 (10:44 +0300)]
.shellrc: Check completion for `bg`, `fg`, `jobs` and `unset`

4 years agoRefactor(.shellrc): Declare `has_completion` once
Oleg Broytman [Mon, 20 Jul 2020 07:42:15 +0000 (10:42 +0300)]
Refactor(.shellrc): Declare `has_completion` once

4 years ago.shellrc: Check static completion in addition to dynamic
Oleg Broytman [Sun, 19 Jul 2020 22:17:05 +0000 (01:17 +0300)]
.shellrc: Check static completion in addition to dynamic

4 years ago.shellrc: Do not check `$SHELL`, just check for files
Oleg Broytman [Sun, 19 Jul 2020 21:49:52 +0000 (00:49 +0300)]
.shellrc: Do not check `$SHELL`, just check for files

4 years ago.shellrc: Complete program names for `run-all-hosts`
Oleg Broytman [Thu, 16 Jul 2020 10:05:55 +0000 (13:05 +0300)]
.shellrc: Complete program names for `run-all-hosts`

4 years agoStyle(.shellrc): Change indent style
Oleg Broytman [Thu, 16 Jul 2020 10:05:26 +0000 (13:05 +0300)]
Style(.shellrc): Change indent style

4 years ago.muttrc: Fix viewing html attachment
Oleg Broytman [Sun, 12 Jul 2020 23:04:57 +0000 (02:04 +0300)]
.muttrc: Fix viewing html attachment

View html attachment saving it in a file instead of piping.

4 years ago.vim/plugin: add `whichwrap.vim` to restore the setting under GNU `screen`
Oleg Broytman [Wed, 8 Jul 2020 13:56:32 +0000 (16:56 +0300)]
.vim/plugin: add `whichwrap.vim` to restore the setting under GNU `screen`

4 years ago.muttrc: Convert html attachment to/from UTF-8
Oleg Broytman [Fri, 3 Jul 2020 11:52:15 +0000 (14:52 +0300)]
.muttrc: Convert html attachment to/from UTF-8

Undo conversion made by `mutt`.

4 years ago.mc: Update `mc.ext`
Oleg Broytman [Tue, 30 Jun 2020 09:16:52 +0000 (12:16 +0300)]
.mc: Update `mc.ext`

4 years ago.vimrc: Remove everything related to bracketed paste mode
Oleg Broytman [Fri, 26 Jun 2020 00:11:20 +0000 (03:11 +0300)]
.vimrc: Remove everything related to bracketed paste mode

Doesn't work under GNU Screen. I now use and recommend to all
https://github.com/jooize/vim-bracketed-paste plugin.

4 years ago.vim: Fix PyEm filetype
Oleg Broytman [Wed, 24 Jun 2020 15:45:11 +0000 (18:45 +0300)]
.vim: Fix PyEm filetype

4 years agoscreen: Allow 2 different sessions with KOI8-R and UTF-8 locales
Oleg Broytman [Fri, 19 Jun 2020 13:52:30 +0000 (16:52 +0300)]
screen: Allow 2 different sessions with KOI8-R and UTF-8 locales

4 years ago.vim: Press `<Enter>` instead of `<C-]>` in help
Oleg Broytman [Thu, 18 Jun 2020 21:12:56 +0000 (00:12 +0300)]
.vim: Press `<Enter>` instead of `<C-]>` in help

Define buffer-specific macro in ftplugin `help.vim`.

4 years ago.vimrc: Update `titlestring` from default
Oleg Broytman [Sun, 14 Jun 2020 15:23:08 +0000 (18:23 +0300)]
.vimrc: Update `titlestring` from default

4 years ago.vimrc: Add default `statusline` and `titlestring`
Oleg Broytman [Sun, 14 Jun 2020 15:21:08 +0000 (18:21 +0300)]
.vimrc: Add default `statusline` and `titlestring`

4 years agobash: Append `$SHLVL` directly to `$OPS1`
Oleg Broytman [Fri, 12 Jun 2020 18:39:40 +0000 (21:39 +0300)]
bash: Append `$SHLVL` directly to `$OPS1`

4 years agobash: Move code related to prompt to `admin/prog/bash_prompt`
Oleg Broytman [Fri, 12 Jun 2020 18:11:27 +0000 (21:11 +0300)]
bash: Move code related to prompt to `admin/prog/bash_prompt`

4 years agobash: Separate host from current dir in `PS1` with `:`
Oleg Broytman [Fri, 12 Jun 2020 14:51:24 +0000 (17:51 +0300)]
bash: Separate host from current dir in `PS1` with `:`

4 years agobash: Prepend memory control group to `PS1`
Oleg Broytman [Fri, 12 Jun 2020 14:39:45 +0000 (17:39 +0300)]
bash: Prepend memory control group to `PS1`

4 years agoFeat: Add `cgmem_which`
Oleg Broytman [Fri, 12 Jun 2020 14:17:08 +0000 (17:17 +0300)]
Feat: Add `cgmem_which`

Show in what memory control group the current shell is.

4 years agobash: Cut long hostname to 5 characters
Oleg Broytman [Mon, 8 Jun 2020 17:48:03 +0000 (20:48 +0300)]
bash: Cut long hostname to 5 characters

4 years agoFix(short_curdir): Count ellipsis
Oleg Broytman [Mon, 8 Jun 2020 17:47:20 +0000 (20:47 +0300)]
Fix(short_curdir): Count ellipsis

4 years agoRename `bin/m` -> `bin/mk`
Oleg Broytman [Mon, 8 Jun 2020 02:33:54 +0000 (05:33 +0300)]
Rename `bin/m` -> `bin/mk`

4 years agobash: Use custom `short_curdir` instead of `\W` in `PS1`
Oleg Broytman [Sun, 7 Jun 2020 21:38:39 +0000 (00:38 +0300)]
bash: Use custom `short_curdir` instead of `\W` in `PS1`

4 years ago.mc: `pdftotext`: Preserve layout
Oleg Broytman [Fri, 5 Jun 2020 21:47:59 +0000 (00:47 +0300)]
.mc: `pdftotext`: Preserve layout

And silence error messages.

4 years ago.muttrc: Work around a very strange bug in my `mutt`
Oleg Broytman [Fri, 5 Jun 2020 18:20:15 +0000 (21:20 +0300)]
.muttrc: Work around a very strange bug in my `mutt`

In the command line it now requires typing `x` 2 times.

4 years ago.muttrc: Run `(un)auto_view text/html` in the attachment screen
Oleg Broytman [Fri, 5 Jun 2020 18:15:36 +0000 (21:15 +0300)]
.muttrc: Run `(un)auto_view text/html` in the attachment screen

4 years ago.mc: Use `pdftotext`, iconv.py` and run a pager to view PDFs
Oleg Broytman [Fri, 5 Jun 2020 17:26:05 +0000 (20:26 +0300)]
.mc: Use `pdftotext`, iconv.py` and run a pager to view PDFs

4 years ago.mc: Use `iconv.py` and run a pager
Oleg Broytman [Fri, 5 Jun 2020 17:21:03 +0000 (20:21 +0300)]
.mc: Use `iconv.py` and run a pager

4 years agoFeat(.mc): Add commands to view/edit XLSX files
Oleg Broytman [Fri, 5 Jun 2020 13:52:58 +0000 (16:52 +0300)]
Feat(.mc): Add commands to view/edit XLSX files

4 years agoRefactor(.mc/mc.ext): Rename `include/msoffice` to `msoffice-doc`
Oleg Broytman [Fri, 5 Jun 2020 13:51:41 +0000 (16:51 +0300)]
Refactor(.mc/mc.ext): Rename `include/msoffice` to `msoffice-doc`

Prepare to add `msoffice-xlsx`.

4 years agoRefactor(.mc/menu): Reorder menu items
Oleg Broytman [Fri, 5 Jun 2020 13:49:36 +0000 (16:49 +0300)]
Refactor(.mc/menu): Reorder menu items

4 years ago.mc/menu: Fix `gmplayer`
Oleg Broytman [Wed, 3 Jun 2020 11:57:15 +0000 (14:57 +0300)]
.mc/menu: Fix `gmplayer`

4 years ago.mc: Replace `qpdfview`, use `evince` to view PDFs
Oleg Broytman [Wed, 3 Jun 2020 11:30:26 +0000 (14:30 +0300)]
.mc: Replace `qpdfview`, use `evince` to view PDFs

`qpdfview` doesn't support non-UTF8 paths.

4 years ago.mc/menu: Add louder mpv menu item
Oleg Broytman [Wed, 3 Jun 2020 11:29:30 +0000 (14:29 +0300)]
.mc/menu: Add louder mpv menu item

4 years ago.muttrc: Add macro `V` to view html attachment in a web browser
Oleg Broytman [Fri, 29 May 2020 23:51:57 +0000 (02:51 +0300)]
.muttrc: Add macro `V` to view html attachment in a web browser

4 years agowebstdin: Redirect stdin from `/dev/tty`
Oleg Broytman [Fri, 29 May 2020 23:42:35 +0000 (02:42 +0300)]
webstdin: Redirect stdin from `/dev/tty`

The script is usually run with stdin redirected from a file or a pipe.
It's necessary to re-redirect stdin so that a console browser
reads from the terminal.

4 years ago.fvwmrc: Switch to the screen where `gxmessage` is open
Oleg Broytman [Wed, 27 May 2020 12:15:54 +0000 (15:15 +0300)]
.fvwmrc: Switch to the screen where `gxmessage` is open

4 years ago.fvwmrc: Do not open local terminal for `phdru.name`
Oleg Broytman [Wed, 27 May 2020 12:14:05 +0000 (15:14 +0300)]
.fvwmrc: Do not open local terminal for `phdru.name`

It's now opened from a button.
See commit 884132f1531aa93222be418209118983e9fcbc66.

4 years ago.fvwmrc: Use `REMOTE_SCREEN` directly
Oleg Broytman [Mon, 25 May 2020 00:13:31 +0000 (03:13 +0300)]
.fvwmrc: Use `REMOTE_SCREEN` directly

4 years agoRevert ".Xmodmap: Improve mapping of Shift (or NumLock) + keypad keys"
Oleg Broytman [Sun, 24 May 2020 13:32:39 +0000 (16:32 +0300)]
Revert ".Xmodmap: Improve mapping of Shift (or NumLock) + keypad keys"

This reverts commit 6491d094caaa894db49729e611ec9553c8d8d47a.

4 years agoRevert ".profile: Start `screen` on interactive login shell"
Oleg Broytman [Sun, 24 May 2020 02:20:02 +0000 (05:20 +0300)]
Revert ".profile: Start `screen` on interactive login shell"

This reverts commits
542f2a97ae5094eb88116ffa02fc441ba95dae47,
41c57a5fd1cf36e9115e8904c068b5777a49ba3e,
c5d595d83cab2e180a71bc65b9e4a8a2f71772db.

4 years ago.fvwm: Publish my real `main.m4`
Oleg Broytman [Sun, 24 May 2020 01:20:29 +0000 (04:20 +0300)]
.fvwm: Publish my real `main.m4`

Too much troubles updating it for publishing every time.

4 years ago.profile: Run `/usr/bin/screen` directly
Oleg Broytman [Sat, 23 May 2020 05:12:38 +0000 (08:12 +0300)]
.profile: Run `/usr/bin/screen` directly

Avoid detecting and executing `~/bin/screen`.

4 years ago.vimrc: Increase X11 font size
Oleg Broytman [Sat, 23 May 2020 00:02:32 +0000 (03:02 +0300)]
.vimrc: Increase X11 font size

4 years ago.vimrc: Improve GUI type detection
Oleg Broytman [Sat, 23 May 2020 00:02:13 +0000 (03:02 +0300)]
.vimrc: Improve GUI type detection

4 years ago.muttrc: Comment out `KP_Enter` mapping
Oleg Broytman [Fri, 22 May 2020 21:32:50 +0000 (00:32 +0300)]
.muttrc: Comment out `KP_Enter` mapping

It prevents `<Enter>` to work in all other macros.

4 years ago.Xmodmap: Improve mapping of Shift (or NumLock) + keypad keys
Oleg Broytman [Thu, 21 May 2020 11:41:36 +0000 (14:41 +0300)]
.Xmodmap: Improve mapping of Shift (or NumLock) + keypad keys

4 years agoFeat(.fvwmrc): Open iconic Firefox window back
Oleg Broytman [Wed, 20 May 2020 18:11:38 +0000 (21:11 +0300)]
Feat(.fvwmrc): Open iconic Firefox window back

This reverts commit aad7389cd958624dcf0e64be47e70e2776f4cbc0.

4 years ago.screenrc: Map additional keypad keys
Oleg Broytman [Wed, 20 May 2020 00:54:28 +0000 (03:54 +0300)]
.screenrc: Map additional keypad keys

4 years ago.screenrc: Fix keypad key names in comments
Oleg Broytman [Wed, 20 May 2020 00:48:25 +0000 (03:48 +0300)]
.screenrc: Fix keypad key names in comments

4 years ago.screenrc: Change hardstatus colors
Oleg Broytman [Thu, 14 May 2020 22:59:16 +0000 (01:59 +0300)]
.screenrc: Change hardstatus colors

The current window (highlighted): black on green;
other windows: black on brown (dim yellow).

4 years ago.bash_prompt: Fix a bug in syntax
Oleg Broytman [Thu, 14 May 2020 22:06:22 +0000 (01:06 +0300)]
.bash_prompt: Fix a bug in syntax

And remove an excessive space.

4 years agobash: Make `PS1` shorter and simpler
Oleg Broytman [Thu, 14 May 2020 14:16:52 +0000 (17:16 +0300)]
bash: Make `PS1` shorter and simpler

Do not repeat `$$$$`, instead display `$4`.

4 years ago.profile: Add `>` as a prompt character for non-bash shells
Oleg Broytman [Thu, 14 May 2020 14:16:11 +0000 (17:16 +0300)]
.profile: Add `>` as a prompt character for non-bash shells

4 years ago.profile: Remove unused `PROMPT_DIRTRIM`, `\W` is enough
Oleg Broytman [Thu, 14 May 2020 14:14:57 +0000 (17:14 +0300)]
.profile: Remove unused `PROMPT_DIRTRIM`, `\W` is enough

4 years agoUpdate .mc/ini
Oleg Broytman [Wed, 13 May 2020 23:00:39 +0000 (02:00 +0300)]
Update .mc/ini

4 years ago.profile: Extend checks for interactive mode
Oleg Broytman [Wed, 13 May 2020 07:16:40 +0000 (10:16 +0300)]
.profile: Extend checks for interactive mode

Avoid starting `screen` when running under `ssh -t remote_host command`.

4 years ago.profile: Start `screen` on interactive login shell
Oleg Broytman [Tue, 12 May 2020 22:51:30 +0000 (01:51 +0300)]
.profile: Start `screen` on interactive login shell

4 years ago.profile: Check error code of `which`, not output
Oleg Broytman [Tue, 12 May 2020 21:55:01 +0000 (00:55 +0300)]
.profile: Check error code of `which`, not output

4 years ago.shellrc: Add the current directory for `mc`
Oleg Broytman [Mon, 11 May 2020 17:26:32 +0000 (20:26 +0300)]
.shellrc: Add the current directory for `mc`

4 years agobash: Append `$SHLVL` number of `\$` to `$PS1`
Oleg Broytman [Sun, 10 May 2020 17:58:04 +0000 (20:58 +0300)]
bash: Append `$SHLVL` number of `\$` to `$PS1`

4 years ago.muttrc: Add macro to map `KP_Enter` -> `Enter`
Oleg Broytman [Sun, 10 May 2020 10:16:24 +0000 (13:16 +0300)]
.muttrc: Add macro to map `KP_Enter` -> `Enter`

4 years ago.muttrc: Remove job-related macros from public
Oleg Broytman [Sun, 10 May 2020 10:15:54 +0000 (13:15 +0300)]
.muttrc: Remove job-related macros from public

4 years ago.mc: Run `mplayer` with preset audio volume
Oleg Broytman [Fri, 1 May 2020 23:59:51 +0000 (02:59 +0300)]
.mc: Run `mplayer` with preset audio volume

4 years ago.mailcap: Remove outdated `smplayer` and `mediaplayer_open`
Oleg Broytman [Fri, 1 May 2020 23:56:57 +0000 (02:56 +0300)]
.mailcap: Remove outdated `smplayer` and `mediaplayer_open`

4 years agoRefactor(.fvwmrc): Refactor `ssh -4` in a separate macro
Oleg Broytman [Thu, 30 Apr 2020 13:53:46 +0000 (16:53 +0300)]
Refactor(.fvwmrc): Refactor `ssh -4` in a separate macro

4 years agoFeat(.fvwmrc): Do not open iconic Firefox window
Oleg Broytman [Sun, 26 Apr 2020 20:33:10 +0000 (23:33 +0300)]
Feat(.fvwmrc): Do not open iconic Firefox window

I now use builtin session/restore.

4 years agoFeat(.fvwmrc): Do not start IM controller terminal
Oleg Broytman [Sun, 26 Apr 2020 20:32:06 +0000 (23:32 +0300)]
Feat(.fvwmrc): Do not start IM controller terminal

I stopped using Gajim/Pidgin/Skype on desktop.

4 years agoFix(.xinitrc): Fix vertical scrolling with touchpad
Oleg Broytman [Sun, 26 Apr 2020 00:11:24 +0000 (03:11 +0300)]
Fix(.xinitrc): Fix vertical scrolling with touchpad

4 years agoFix(.mc/menu): `mplayer` (actually `mpv`)
Oleg Broytman [Sat, 25 Apr 2020 21:43:39 +0000 (00:43 +0300)]
Fix(.mc/menu): `mplayer` (actually `mpv`)

4 years agoFeat(.mc/menu): Edit PDFs with `LibreOffice`
Oleg Broytman [Sat, 25 Apr 2020 21:41:55 +0000 (00:41 +0300)]
Feat(.mc/menu): Edit PDFs with `LibreOffice`

4 years agoFeat(.mc/mc.ext): Switch to `audacious`
Oleg Broytman [Sat, 25 Apr 2020 21:39:49 +0000 (00:39 +0300)]
Feat(.mc/mc.ext): Switch to `audacious`

Switch from `deadbeef` back to `audacious` and `audtool`.

4 years agoFeat(cgmem_nice): More memory containers were added
Oleg Broytman [Fri, 24 Apr 2020 17:14:10 +0000 (20:14 +0300)]
Feat(cgmem_nice): More memory containers were added

4 years ago.screenrc: Remap keypad
Oleg Broytman [Sat, 11 Apr 2020 15:13:34 +0000 (18:13 +0300)]
.screenrc: Remap keypad