]> git.phdru.name Git - dotfiles.git/log
dotfiles.git
2 months agoFeat(recode-filenames-recursive): Allow to omit parameters master
Oleg Broytman [Mon, 19 Feb 2024 20:11:34 +0000 (23:11 +0300)]
Feat(recode-filenames-recursive): Allow to omit parameters

2 months agoAdd scripts to copy/move a file with recoded filename
Oleg Broytman [Fri, 9 Feb 2024 11:37:15 +0000 (14:37 +0300)]
Add scripts to copy/move a file with recoded filename

2 months ago.fvwmrc: Different way to blank screen using `xset dpms`
Oleg Broytman [Mon, 5 Feb 2024 16:22:50 +0000 (19:22 +0300)]
.fvwmrc: Different way to blank screen using `xset dpms`

2 months agoFeat(bin/cleanup-recode.sh): Default is the current directory
Oleg Broytman [Sun, 28 Jan 2024 20:56:48 +0000 (23:56 +0300)]
Feat(bin/cleanup-recode.sh): Default is the current directory

2 months agobin: Fix `unzip.py`
Oleg Broytman [Thu, 25 Jan 2024 17:21:40 +0000 (20:21 +0300)]
bin: Fix `unzip.py`

2 months agobin/git-open: Open browser window in private mode
Oleg Broytman [Thu, 25 Jan 2024 17:21:00 +0000 (20:21 +0300)]
bin/git-open: Open browser window in private mode

2 months agobin: Improve `compyle`
Oleg Broytman [Thu, 25 Jan 2024 17:18:57 +0000 (20:18 +0300)]
bin: Improve `compyle`

Ignore error code.
Exclude `tox` and virtual env directories.

2 months agobin: Remove outdated unused scripts
Oleg Broytman [Thu, 25 Jan 2024 17:17:58 +0000 (20:17 +0300)]
bin: Remove outdated unused scripts

3 months agoStyle(.vim/python/completion.py): Fix `flake8` warnings
Oleg Broytman [Sat, 20 Jan 2024 04:14:26 +0000 (07:14 +0300)]
Style(.vim/python/completion.py): Fix `flake8` warnings

3 months agoRefactor(.vim/python/virtualenv.py): Optimize code
Oleg Broytman [Sat, 20 Jan 2024 04:13:30 +0000 (07:13 +0300)]
Refactor(.vim/python/virtualenv.py): Optimize code

Check Python version once outside the loop.

3 months ago.fvwmrc: Run `xset s on` before activating
Oleg Broytman [Thu, 18 Jan 2024 15:49:42 +0000 (18:49 +0300)]
.fvwmrc: Run `xset s on` before activating

`xscreensaver` sets it to off.

Also improve menu titles.

3 months agoFeat(.vim/python/virtualenv.py): Check major Python version
Oleg Broytman [Thu, 18 Jan 2024 12:55:38 +0000 (15:55 +0300)]
Feat(.vim/python/virtualenv.py): Check major Python version

Do not activate the current virtual environment
if it doesn't correspond to the vim's Python version.

3 months agoFeat(.vim/python/virtualenv.py): Search for `activate_this.py` in w32
Oleg Broytman [Thu, 18 Jan 2024 12:52:04 +0000 (15:52 +0300)]
Feat(.vim/python/virtualenv.py): Search for `activate_this.py` in w32

3 months ago.fvwmrc: Use `xset s` to activate screensaver
Oleg Broytman [Tue, 16 Jan 2024 20:52:52 +0000 (23:52 +0300)]
.fvwmrc: Use `xset s` to activate screensaver

Work around a bug in `xscreensaver`. See
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040948

3 months ago.vim: Rename `RemoveTrailingSpaces` -> `StripTrailingSpaces`
Oleg Broytman [Mon, 1 Jan 2024 15:37:04 +0000 (18:37 +0300)]
.vim: Rename `RemoveTrailingSpaces` -> `StripTrailingSpaces`

4 months ago.shellrc: unset `wrapper`
Oleg Broytman [Sun, 24 Dec 2023 10:28:19 +0000 (13:28 +0300)]
.shellrc: unset `wrapper`

4 months agoMove `.vim/autoload/text.vim` -> `.vim/plugin/text.vim`
Oleg Broytman [Wed, 20 Dec 2023 11:32:54 +0000 (14:32 +0300)]
Move `.vim/autoload/text.vim` -> `.vim/plugin/text.vim`

I use these functions quite often, let them be always available.

4 months agoFix(Py3): Use `urllib.parse.urlsplit()`
Oleg Broytman [Tue, 28 Nov 2023 16:47:38 +0000 (19:47 +0300)]
Fix(Py3): Use `urllib.parse.urlsplit()`

4 months ago.fvwmrc: Do not automatically open terminals with `ssh`
Oleg Broytman [Mon, 27 Nov 2023 15:48:17 +0000 (18:48 +0300)]
.fvwmrc: Do not automatically open terminals with `ssh`

I prefer to do it manually.

4 months agoRefactor(.bashrc): Reorder parts
Oleg Broytman [Thu, 16 Nov 2023 13:54:25 +0000 (16:54 +0300)]
Refactor(.bashrc): Reorder parts

5 months ago.bashrc: Remove second call to `bash_prompt`
Oleg Broytman [Thu, 16 Nov 2023 13:53:43 +0000 (16:53 +0300)]
.bashrc: Remove second call to `bash_prompt`

5 months ago.fvwmrc: Simplify quoting
Oleg Broytman [Wed, 15 Nov 2023 17:17:03 +0000 (20:17 +0300)]
.fvwmrc: Simplify quoting

Get rid of backtick in shell commands, use `$()` instead.

5 months agoFix(xli): Fix window title
Oleg Broytman [Wed, 15 Nov 2023 16:33:31 +0000 (19:33 +0300)]
Fix(xli): Fix window title

`xli` cuts long names on the 1st dot instead of the last.
It seems it recognizes everything after the 1st dot
as a filename extension.

To fix replace all dots with underscores.

5 months ago.bashrc: minor refactoring
Oleg Broytman [Fri, 10 Nov 2023 11:59:55 +0000 (14:59 +0300)]
.bashrc: minor refactoring

5 months ago.bashrc: Fix default `PATH`
Oleg Broytman [Thu, 9 Nov 2023 10:59:31 +0000 (13:59 +0300)]
.bashrc: Fix default `PATH`

5 months ago.bashrc: Separate two tests for the case the dir doesn't exist
Oleg Broytman [Thu, 9 Nov 2023 10:58:59 +0000 (13:58 +0300)]
.bashrc: Separate two tests for the case the dir doesn't exist

5 months agobash_prompt: recurse submodules
Oleg Broytman [Thu, 9 Nov 2023 10:51:48 +0000 (13:51 +0300)]
bash_prompt: recurse submodules

5 months agobin/cleanup-filenames.sh: Remove accents
Oleg Broytman [Mon, 6 Nov 2023 00:37:41 +0000 (03:37 +0300)]
bin/cleanup-filenames.sh: Remove accents

Convert latin1 characters to ascii.

5 months agobin/s: Restore term title
Oleg Broytman [Mon, 6 Nov 2023 00:37:00 +0000 (03:37 +0300)]
bin/s: Restore term title

5 months agobin/compyleall: Do not check error code
Oleg Broytman [Mon, 6 Nov 2023 00:35:30 +0000 (03:35 +0300)]
bin/compyleall: Do not check error code

`compileall` can return error on `SyntaxError`
but the program could continue.

5 months agounzip.py: Fix encoding
Oleg Broytman [Sat, 4 Nov 2023 12:53:17 +0000 (15:53 +0300)]
unzip.py: Fix encoding

5 months agobash_completion: Generate the list of Python/pip versions
Oleg Broytman [Fri, 3 Nov 2023 16:31:06 +0000 (19:31 +0300)]
bash_completion: Generate the list of Python/pip versions

5 months ago.mc/menu: Remove excessive quotes: MC escapes `%[dfst]`
Oleg Broytman [Fri, 3 Nov 2023 13:57:35 +0000 (16:57 +0300)]
.mc/menu: Remove excessive quotes: MC escapes `%[dfst]`

6 months ago.vimrc: Fix error message format
Oleg Broytman [Tue, 24 Oct 2023 11:01:12 +0000 (14:01 +0300)]
.vimrc: Fix error message format

Vim 9 slightly changed the format.

6 months ago.bashrc: Extract git-related functions to a separate file
Oleg Broytman [Mon, 16 Oct 2023 14:23:07 +0000 (17:23 +0300)]
.bashrc: Extract git-related functions to a separate file

There're more than just completions.

6 months ago.bashrc: Extract oft-edited completion to a separate file
Oleg Broytman [Mon, 16 Oct 2023 14:17:35 +0000 (17:17 +0300)]
.bashrc: Extract oft-edited completion to a separate file

6 months ago.bashrc: Invert conditions
Oleg Broytman [Mon, 16 Oct 2023 14:06:29 +0000 (17:06 +0300)]
.bashrc: Invert conditions

`! has_completion $cmd &&` -> `has_completion $cmd ||`

6 months ago.bashrc: Check the dir is not empty before looping over files
Oleg Broytman [Mon, 16 Oct 2023 13:54:48 +0000 (16:54 +0300)]
.bashrc: Check the dir is not empty before looping over files

6 months ago.bashrc, .shellrc: Add `cd_worktree` with completion
Oleg Broytman [Sun, 15 Oct 2023 12:24:03 +0000 (15:24 +0300)]
.bashrc, .shellrc: Add `cd_worktree` with completion

6 months ago.bashrc, .shellrc: Move `cdgitpath`
Oleg Broytman [Sun, 15 Oct 2023 12:22:44 +0000 (15:22 +0300)]
.bashrc, .shellrc: Move `cdgitpath`

It doesn't contain any bash-related funcionality.

6 months ago.bashrc: Add completions for Python/pip 3.12
Oleg Broytman [Sun, 15 Oct 2023 12:22:07 +0000 (15:22 +0300)]
.bashrc: Add completions for Python/pip 3.12

6 months ago.bashrc: Save history and open a new `screen` window
Oleg Broytman [Sat, 30 Sep 2023 11:47:25 +0000 (14:47 +0300)]
.bashrc: Save history and open a new `screen` window

7 months ago.fvwmrc: Adjust `mpv` initial window position
Oleg Broytman [Wed, 6 Sep 2023 18:05:27 +0000 (21:05 +0300)]
.fvwmrc: Adjust `mpv` initial window position

8 months ago.fvwmrc: If network is not up - report and break
Oleg Broytman [Sat, 19 Aug 2023 20:03:43 +0000 (23:03 +0300)]
.fvwmrc: If network is not up - report and break

8 months ago.fvwmrc: Do not break out of all callers, just break this function
Oleg Broytman [Sat, 19 Aug 2023 20:03:13 +0000 (23:03 +0300)]
.fvwmrc: Do not break out of all callers, just break this function

8 months ago.fvwmrc: Open remote hosts' terms on startup and resume
Oleg Broytman [Sat, 19 Aug 2023 19:04:09 +0000 (22:04 +0300)]
.fvwmrc: Open remote hosts' terms on startup and resume

8 months agoFix(bin/recode_filenames.py): Decode new name
Oleg Broytman [Fri, 11 Aug 2023 19:51:49 +0000 (22:51 +0300)]
Fix(bin/recode_filenames.py): Decode new name

8 months agoFeat(bin): Port scripts to Python 3
Oleg Broytman [Fri, 11 Aug 2023 11:00:49 +0000 (14:00 +0300)]
Feat(bin): Port scripts to Python 3

8 months agoAdd `bin/rucal`
Oleg Broytman [Fri, 11 Aug 2023 11:00:18 +0000 (14:00 +0300)]
Add `bin/rucal`

8 months agoFeat(bin/wget-mirror): Shorten the pause
Oleg Broytman [Fri, 11 Aug 2023 10:59:21 +0000 (13:59 +0300)]
Feat(bin/wget-mirror): Shorten the pause

8 months agoRefactor(bin/recode-inplace)
Oleg Broytman [Fri, 11 Aug 2023 10:58:11 +0000 (13:58 +0300)]
Refactor(bin/recode-inplace)

8 months ago.muttrc: prevent converting file to save
Oleg Broytman [Tue, 1 Aug 2023 12:13:50 +0000 (15:13 +0300)]
.muttrc: prevent converting file to save

Update for Mutt 2.2.9 from Debian 12.

9 months agoMoved pyenv config from `.profile` to `.bashrc`
Oleg Broytman [Sat, 22 Jul 2023 11:59:10 +0000 (14:59 +0300)]
Moved pyenv config from `.profile` to `.bashrc`

Shell integration should be configured in every interactive shell.

9 months ago.mc: Move to MC 4 `mc.ext.ini`
Oleg Broytman [Mon, 17 Jul 2023 07:12:37 +0000 (10:12 +0300)]
.mc: Move to MC 4 `mc.ext.ini`

9 months ago.mc: Update after upgrade to Debian 12 (before move to MC 4 `mc.ext.ini`)
Oleg Broytman [Mon, 17 Jul 2023 07:11:40 +0000 (10:11 +0300)]
.mc: Update after upgrade to Debian 12 (before move to MC 4 `mc.ext.ini`)

9 months ago.fvwmrc: Update after upgrade to Debian 12
Oleg Broytman [Mon, 17 Jul 2023 07:10:32 +0000 (10:10 +0300)]
.fvwmrc: Update after upgrade to Debian 12

10 months ago.fvwmrc: Remove dead unused code
Oleg Broytman [Fri, 23 Jun 2023 12:29:28 +0000 (15:29 +0300)]
.fvwmrc: Remove dead unused code

10 months ago.mc/menu: View the file in a new private browser tab
Oleg Broytman [Wed, 7 Jun 2023 08:27:11 +0000 (11:27 +0300)]
.mc/menu: View the file in a new private browser tab

10 months agoFeat(bin/webbrowser-encode-url): Port to Python 2+3
Oleg Broytman [Wed, 7 Jun 2023 08:06:46 +0000 (11:06 +0300)]
Feat(bin/webbrowser-encode-url): Port to Python 2+3

10 months ago.fvwmrc: Suspend/resume FireFox
Oleg Broytman [Tue, 6 Jun 2023 18:09:51 +0000 (21:09 +0300)]
.fvwmrc: Suspend/resume FireFox

11 months agobin/webbrowser: Open a private window/tab
Oleg Broytman [Tue, 9 May 2023 12:22:17 +0000 (15:22 +0300)]
bin/webbrowser: Open a private window/tab

Private in Mozilla Firefox, incognito in Google Chrome.

11 months agobin/webbrowser: Fix indent (3 spaces to 4)
Oleg Broytman [Tue, 9 May 2023 12:21:37 +0000 (15:21 +0300)]
bin/webbrowser: Fix indent (3 spaces to 4)

11 months agobin: Make `wget-m` symlink to `wget-mirror`
Oleg Broytman [Tue, 9 May 2023 12:19:47 +0000 (15:19 +0300)]
bin: Make `wget-m` symlink to `wget-mirror`

12 months ago.fvwmrc: Open just 1 Firefox window
Oleg Broytman [Mon, 17 Apr 2023 16:45:16 +0000 (19:45 +0300)]
.fvwmrc: Open just 1 Firefox window

12 months ago.fvwmrc: Stay at the same desktop after running Firefox
Oleg Broytman [Sat, 8 Apr 2023 06:41:02 +0000 (09:41 +0300)]
.fvwmrc: Stay at the same desktop after running Firefox

Fox asks for password at the start.

13 months agomc: Separate stdout and stderr; use `.communicate()`
Oleg Broytman [Tue, 7 Mar 2023 22:23:25 +0000 (01:23 +0300)]
mc: Separate stdout and stderr; use `.communicate()`

Check return code and stderr.

13 months agomc: Report error via `sys.exit(message)`
Oleg Broytman [Tue, 7 Mar 2023 22:22:21 +0000 (01:22 +0300)]
mc: Report error via `sys.exit(message)`

13 months ago.mc/menu: Improve `deadbeef` command lines
Oleg Broytman [Mon, 27 Feb 2023 07:47:03 +0000 (10:47 +0300)]
.mc/menu: Improve `deadbeef` command lines

13 months ago.fvwmrc: Limit memory for browser running from `webbrowserX`
Oleg Broytman [Thu, 23 Feb 2023 16:39:52 +0000 (19:39 +0300)]
.fvwmrc: Limit memory for browser running from `webbrowserX`

15 months ago.shellrc: Unset `$MAILCHECK` in non-login shells
Oleg Broytman [Fri, 13 Jan 2023 15:27:26 +0000 (18:27 +0300)]
.shellrc: Unset `$MAILCHECK` in non-login shells

15 months ago.shellrc: Move bash-only code to `.bashrc`
Oleg Broytman [Fri, 13 Jan 2023 15:26:25 +0000 (18:26 +0300)]
.shellrc: Move bash-only code to `.bashrc`

15 months ago.vim: Fix name `SearchConflictMarkers`
Oleg Broytman [Wed, 11 Jan 2023 12:10:10 +0000 (15:10 +0300)]
.vim: Fix name `SearchConflictMarkers`

First, a verb. Then the object(s) to apply the verb.

15 months ago.bashrc,.profile: Add to `$PATH` XScreenSaver hacks in `/usr/games`
Oleg Broytman [Wed, 4 Jan 2023 11:25:44 +0000 (14:25 +0300)]
.bashrc,.profile: Add to `$PATH` XScreenSaver hacks in `/usr/games`

15 months agobin/cgmem_*: Mounted memory cgroup at `/sys/fs/cgroup/memory`
Oleg Broytman [Tue, 27 Dec 2022 09:18:33 +0000 (12:18 +0300)]
bin/cgmem_*: Mounted memory cgroup at `/sys/fs/cgroup/memory`

Fred up `/sys/fs/cgroup` for other cgroups.

16 months ago.profile: HISTIGNORE mistakes
Oleg Broytman [Wed, 21 Dec 2022 10:18:59 +0000 (13:18 +0300)]
.profile: HISTIGNORE mistakes

`~?` must be `!?`.
`,c` and `ьс` (in the terminal's encoding) must be `mc`.

16 months ago.bashrc: Read history
Oleg Broytman [Tue, 6 Dec 2022 16:05:25 +0000 (19:05 +0300)]
.bashrc: Read history

16 months ago.vim: Add `ftplugin/sshconfig.vim`
Oleg Broytman [Thu, 1 Dec 2022 15:00:15 +0000 (18:00 +0300)]
.vim: Add `ftplugin/sshconfig.vim`

16 months ago.vim: Add `ConflictMarkersSearch()`
Oleg Broytman [Wed, 30 Nov 2022 12:27:41 +0000 (15:27 +0300)]
.vim: Add `ConflictMarkersSearch()`

16 months agoFeat(.mc/menu): Put random playlist in `/tmp/`
Oleg Broytman [Sun, 27 Nov 2022 14:35:11 +0000 (17:35 +0300)]
Feat(.mc/menu): Put random playlist in `/tmp/`

Requires latest version of `shuffle-playlist.py`.

16 months ago.shellrc: Run `/bin/rm` instead of just `rm`
Oleg Broytman [Sat, 26 Nov 2022 22:16:01 +0000 (01:16 +0300)]
.shellrc: Run `/bin/rm` instead of just `rm`

On some systems `rm` is an interactive alias that runs `rm -i`.

17 months ago.vim: Remove a personal mapping
Oleg Broytman [Thu, 17 Nov 2022 14:25:33 +0000 (17:25 +0300)]
.vim: Remove a personal mapping

17 months ago.vim: `RemoveTrailingSpaces()`
Oleg Broytman [Wed, 16 Nov 2022 16:23:45 +0000 (19:23 +0300)]
.vim: `RemoveTrailingSpaces()`

17 months ago.vim: `SqueezeEmptyLines()`
Oleg Broytman [Sat, 12 Nov 2022 15:08:25 +0000 (18:08 +0300)]
.vim: `SqueezeEmptyLines()`

Replace multiple consecutive empty lines with just one.

17 months agoFeat: On exit from `vim` do `cd` to its last working directory
Oleg Broytman [Fri, 28 Oct 2022 15:07:46 +0000 (18:07 +0300)]
Feat: On exit from `vim` do `cd` to its last working directory

17 months agoFix deprecated open mode `rU` -> `r`
Oleg Broytman [Thu, 27 Oct 2022 15:21:58 +0000 (18:21 +0300)]
Fix deprecated open mode `rU` -> `r`

17 months ago.bashrc: Add Python/pip 3.11
Oleg Broytman [Tue, 25 Oct 2022 09:28:02 +0000 (12:28 +0300)]
.bashrc: Add Python/pip 3.11

18 months ago.gitconfig: Fix URLs
Oleg Broytman [Sun, 16 Oct 2022 14:05:49 +0000 (17:05 +0300)]
.gitconfig: Fix URLs

Add `git@github.com:` and `git@gitlab.com:`.

18 months ago.profile: unset `MAILCHECK` under `screen`
Oleg Broytman [Sun, 9 Oct 2022 22:04:09 +0000 (01:04 +0300)]
.profile: unset `MAILCHECK` under `screen`

Unset `MAILCHECK` for all but the very 1st `screen` window.

18 months ago.profile: HISTIGNORE `cd`
Oleg Broytman [Sun, 9 Oct 2022 18:30:44 +0000 (21:30 +0300)]
.profile: HISTIGNORE `cd`

18 months ago.bashrc: Remove overlooked unused `$PY_VER`
Oleg Broytman [Sat, 8 Oct 2022 19:43:34 +0000 (22:43 +0300)]
.bashrc: Remove overlooked unused `$PY_VER`

18 months ago.bashrc: Fix variable name spelling
Oleg Broytman [Sat, 8 Oct 2022 19:43:18 +0000 (22:43 +0300)]
.bashrc: Fix variable name spelling

18 months ago.bashrc: Sort shopts alphabetically
Oleg Broytman [Sat, 8 Oct 2022 19:42:44 +0000 (22:42 +0300)]
.bashrc: Sort shopts alphabetically

18 months ago.bashrc: `unset HISTFILE` if it was unset before
Oleg Broytman [Sat, 8 Oct 2022 10:20:45 +0000 (13:20 +0300)]
.bashrc: `unset HISTFILE` if it was unset before

18 months ago.bashrc: Indent 4 spaces
Oleg Broytman [Sat, 8 Oct 2022 10:20:25 +0000 (13:20 +0300)]
.bashrc: Indent 4 spaces

18 months ago.fvwmrc: Increase big terminal size
Oleg Broytman [Sun, 2 Oct 2022 13:34:49 +0000 (16:34 +0300)]
.fvwmrc: Increase big terminal size

18 months ago.profile: Extend `$HISTIGNORE`
Oleg Broytman [Thu, 29 Sep 2022 11:32:10 +0000 (14:32 +0300)]
.profile: Extend `$HISTIGNORE`

18 months ago.mc/menu: Fix calling PDF viewer
Oleg Broytman [Wed, 21 Sep 2022 14:15:52 +0000 (17:15 +0300)]
.mc/menu: Fix calling PDF viewer

Convert the file name to KOI8-R before running `koi2lat`.

18 months ago.mc/menu: Verify detached signature
Oleg Broytman [Sun, 18 Sep 2022 21:18:38 +0000 (00:18 +0300)]
.mc/menu: Verify detached signature

18 months ago.mc/menu: Fix path
Oleg Broytman [Sun, 18 Sep 2022 21:16:32 +0000 (00:16 +0300)]
.mc/menu: Fix path

I moved `~/admin/prog/audio-cdr-video` to `~/prog/audio-cdr-video`

18 months ago.gitconfig: Add protocol changers and fixers
Oleg Broytman [Thu, 15 Sep 2022 16:07:04 +0000 (19:07 +0300)]
.gitconfig: Add protocol changers and fixers

Add `git://` protocol fixers and HTTPS/SSH changers.
Commented out -- they're only examples.