summary refs log tree commit diff
path: root/home/.profile (unfollow)
Commit message (Collapse)Author
2020-12-27Bail from blame if blob is binaryJune McEnroe
This avoids piping binary blobs through the source-filter.
2020-12-27Remove dependency on memrchrJune McEnroe
2020-12-27Remove cgit/git submoduleJune McEnroe
2020-12-23Remove 1shJune McEnroe
2020-12-23Remove bash_profile, bashrcJune McEnroe
2020-12-23Fix dash Makefile compatibility with BSD makeJune McEnroe
2020-12-23Switch from 1sh to dashJune McEnroe
2020-12-23Fix multi-line prompts when right prompts are usedJune McEnroe
editline does not render a multi-line PS1 correctly when RPS1 is also set. To work around this, return only the last line of the cached prompt to editline, and print the leading lines separately inside setprompt.
2020-12-23Add RPS1 and RPS2 right prompt variablesJune McEnroe
2020-12-23Cache the expanded prompt for editlineJune McEnroe
Previously, the prompt would be expanded every time editline called the getprompt callback. I think the code may have been written assuming that editline only calls getprompt once per prompt, but it may actually call it many times, for instance every time you type backspace. This results not only in slower editing from expanding complex prompts repeatedly, it also consumes more and more stack memory each time getprompt is called. This can be seen by setting PS1 to some command substitution, typing many characters at the prompt, then holding backspace and observing memory usage. Thankfully all this stack memory is freed between prompts by the stackmark calls around el_gets. This change causes prompt expansion to always happen in the setprompt call, as it would when editline is disabled, and a cached copy of the prompt is saved for getprompt to return every time editline calls it. Since getprompt is no longer doing expansion, the stackmark calls surrounding el_gets can be removed.
2020-12-22Bind libedit's secret filename completion functionJune McEnroe
Check if the FreeBSD (and by extension macOS) _el_fn_sh_complete version of the function exists, which does shell escaping of completed filenames before _el_fn_complete learned to. Tab is bound after calling el_set() and el_source() since the default bindings set tab to something else, and it should always be filename completion in the shell.
2020-12-22Build with libedit by defaultJune McEnroe
2020-12-22Fail if building --with-libedit and can't find libeditJune McEnroe
Previously, configure --with-libedit would only fail in the case where libedit is available but its header file histedit.h is not.
2020-12-22Limit prune.sh to ~/.config ~/.localJune McEnroe
Otherwise macOS gets very mad as it tries to access a bunch of protected directories.
2020-12-21Match the number part of the argument to :RFCJune McEnroe
This fixes pressing K on "RFC3501", for example.
2020-12-21Move rfc.vim to doc/rfcJune McEnroe
That default path is a bit wonky, but it prevents having to template rfc.vim for basically no reason.
2020-12-21Move rfc to doc/rfcJune McEnroe
2020-12-21Move wcfix to port/wcwidthJune McEnroe
2020-12-21Update PDF URLsJune McEnroe
2020-12-21Move pdf to doc/pdfJune McEnroe
2020-12-21Remove TF2 configJune McEnroe
Uninstalled TF2 and upgraded to macOS Catalina which can't run it ever again. Goodbye TF2, you used to be fun.
2020-12-20Emit tags for section headings without trailing dotsJune McEnroe
Some RFCs reference other sections like "(Section 1.2)", where the section header says "1.2.".
2020-12-20Depend on rfc-index.txt.gz in MakefileJune McEnroe
2020-12-19Convert :RFC number to numberJune McEnroe
This removes any leading zeros such as in rfc-index.txt.
2020-12-19Move :RFC to plugin scriptJune McEnroe
2020-12-19Sort RFC tags fileJune McEnroe
This supposedly lets vim do binary search on the file, not that it seemed slow before. Also handle section headings with no names.
2020-12-19Open rfc-index.txt for :RFC without argumentJune McEnroe
2020-12-19Include rfc-index.txt in RFC syncJune McEnroe
2020-12-18Add :RFC vim command to view IETF RFCsJune McEnroe
This sets iskeyword so that ^] will work for the kinds of tags generated by rfctags.pl, and keywordprg so that K on another RFC number will view that one. It also binds gO to jump to the table of contents of the RFC.
2020-12-18Add scripts to download, compress and tag IETF RFCsJune McEnroe
2020-12-18Fix bibsort name sorting for middle names, trailing titlesJune McEnroe
Correctly sorts "Kevin L. Mitchell" and "K. Zeilenga, Ed." for example.
2020-12-15Add bibsortJune McEnroe
My first perl script! hi doesn't have syntax highlighting for perl, and I don't think I could sanely implement it, but oh well.
2020-12-08Add modem -r flag to set baud rateJune McEnroe
Also fix it to continue reading output, rather than exiting as soon as the child exits... Except on macOS this still doesn't seem to work correctly for some reason.
2020-12-07Clean up variable expansions in c.shJune McEnroe
2020-12-06Add I Feel It AllJune McEnroe
2020-12-05Handle const strings in c -eJune McEnroe
2020-12-05Disable mouse in htopJune McEnroe
I feel like this option is new, otherwise I would have unset it before.
2020-12-03Note lack of macro expansions in Q(...)June McEnroe
2020-12-02Fix missing "to" in "hot tips"June McEnroe
2020-12-02Publish "hot tips"June McEnroe
2020-11-26Publish "Inability"June McEnroe
I don't know, it's something.
2020-11-26Render content into atom feedJune McEnroe
And fix some atom lints.
2020-11-26Update plan with different things I won't doJune McEnroe
2020-11-19Add "Come On Petunia"June McEnroe
2020-11-13Add x4 to LESSJune McEnroe
2020-11-04Remove modified sensitivity settingsJune McEnroe
2020-10-29Remove editJune McEnroe
2020-10-27Switch gr alias back to git rebaseJune McEnroe
I always type out git reset and sometimes still expect gr to be rebase... Never got used to it I guess.
2020-10-27Allow cd host: to cd to same path over sshJune McEnroe
2020-10-27Use SendEnv for cd host:pathJune McEnroe
Works properly for weird paths, etc.