sev [Sun, 5 Jan 2025 08:36:30 +0000 (02:36 -0600)]
zsh: path logic fixes, better duplicate detection
PATH, FPATH, and XDG vars will now properly remove duplicate paths whose only
difference is that they end in a slash. also removed some cruft and an old
comment that no longer applies.
sev [Sun, 22 Dec 2024 17:39:45 +0000 (11:39 -0600)]
zshrc: fix zcleanup
previously zcleanup had acquired some regressions:
- _sev_tmp was changed to be a link, which caused `find` to fail without -L
- pid selection was broken
- logic was not unified, so some code paths were making incorrect assumptions
- if tmp failed to be removed, superfluous errors could be shown
zcleanup now removes all session dirs with this criteria:
- pid is ourselves (stale session or was forced to cleanup)
- pid is dead
- pid is alive and not a zsh
the dir is also now reused in tmp generation in case it exists, instead of
showing an error; this really shouldn't happen but I think it's saner
sev [Fri, 6 Dec 2024 22:49:39 +0000 (16:49 -0600)]
vim: update vim-suda and supporting framework
- vim-suda was updated to remove `setlocal backup`, so the rc no longer handles
that option. (#85)
- didn't notice at the time but even if undofile is set during :read or enabled
after, the buffer's undo stack is not updated, so expand the undofile save to
also read the undofile when loading suda:// buffers.
sev [Sat, 26 Oct 2024 00:47:59 +0000 (19:47 -0500)]
vimrc: enable modeline explicitly
modelines are enabled by default in most installations, but in cases where rhey
aren't, explicitly enable them. modern vim is protected against exploit by
running modelines in a sandbox and blocking expressions. they shouls be pretty
safe. nvim is planning to do more with it eventually to make it moreso.
sev [Fri, 25 Oct 2024 23:17:08 +0000 (18:17 -0500)]
vim: fix vimrc, remove todo plugin, add lastplace
- comments were updated and some sections reordered
- removed todo.txt plugin as I have not used it in forever
- added lastplace plugin for missing cursor return in nvim
- removed vimStartup autocmd from defaults.vim, as lastplace plugin replaces it
- made commentary plugin optional and only load under vim, as nvim has built in
comment handling now
- fix lots of autocmds to use the correct events and actually do things
- add autocmd to some options that needed it, such as autoindent under vim
- change default colorscheme to murphy
- modify space coloration logic and highlight group names
- add CTRL-L :noh to vim like with sensible.vim and nvim
- add a few new options to override sensible.vim if loaded (like in termux)
sev [Fri, 18 Oct 2024 21:23:36 +0000 (16:23 -0500)]
vim: update config, support nvim, del editorconfig
- many config options were not being applied globally, since they were not
global options themselves. they have been made global using autocommands.
- nvim did not work properly as some options are not compatible/not necessary
with it.
- editorconfig is built-in as of vim 9, so the repo is no longer necessary. it
has been removed, and the editorconfig optional package loaded when vim
starts.
sev [Mon, 16 Sep 2024 13:36:23 +0000 (08:36 -0500)]
zshenv: fix tmp and .local [for termux proot]
there have been some issues with tmpdir that were uncovered thanks to
using proot in termux. this better supports home dir changes, paths that
already exist, and an incorrect var name used in proot, for tmpdir
generation. it also fixes .local permissions, to support accessing it
during zsu (which still isn't implemented lol!)