344 Commits

Author SHA1 Message Date
adam 93d8296e49 Another way to detect wifi cards. 2026-08-04 05:09:40 -04:00
adam 856364e7cf Fix ignored cache on git dirs. 2026-07-30 04:47:27 -04:00
adam d6c595d4cb A quick defense to blank gitdirs. 2026-07-30 04:01:39 -04:00
adam e1cb28d47b Cleaner gitdir cache control 2026-07-30 03:57:13 -04:00
adam 6788feba34 Directory caches.
This uses a rudimentary CPU speed check at launch to gate larger
cache sizes.  (This is on the theory that older systems or those
with weaker CPUs will struggle to walk the cache.)
2026-07-30 03:51:44 -04:00
adam 9fa81dc171 FreeBSD & Linux can sort-shuffle. 2026-07-30 02:56:38 -04:00
adam 5721b5b9e6 Tweak how unicode is generated.
I may still have a quoting/backslash problem here.  I might have
to expand based upon terminal settings.
2026-07-30 02:43:12 -04:00
adam e3732c0d19 Merge branch 'master' of gitea.nerdland.org:adam/cshenv into master
* 'master' of gitea.nerdland.org:adam/cshenv:
  Fix substitution on older TCSH.
2026-07-30 02:35:37 -04:00
adam 09ef32e9a0 Fix nit. 2026-07-30 02:33:58 -04:00
adam 50292ce8a0 Landing-pad for sigil doesn't use save/restore. 2026-07-30 02:32:43 -04:00
adam e45befb52c Cached ls colors generation for some "groups" 2026-07-30 02:25:49 -04:00
adam ef2dfef39f Wifi strength in prompt on Linux. 2026-07-30 02:22:54 -04:00
adam e2f7ec492f Color swatches mode for __build_sgr_code 2026-07-30 01:21:34 -04:00
adam f5a336e4df Change LS_COLORS codes to ansi not ext. 2026-07-30 01:20:35 -04:00
adam fbfa1e382f Fix substitution on older TCSH. 2026-07-29 19:57:18 -04:00
adam 87cae283c0 Trim some stale commented out code. 2026-07-16 17:55:47 -04:00
adam e4aade37cf Simpler battery level color compute code. 2026-07-16 17:55:47 -04:00
adam 68ee546518 New way of adding sigils and add a few that way. 2026-07-16 17:55:47 -04:00
adam 70de3c2e30 Add 2 new sigils 2026-07-16 17:55:47 -04:00
adam 703f92b064 Prompt sigil shuffle code cleaned up and improved.
A more portable third method is provided.  And some comments make
it understandable.
2026-07-16 17:55:47 -04:00
adam cdd364fe33 Change sigil printing to "overlay" style. 2026-07-16 17:55:47 -04:00
adam 2070425c41 Allow higher plane characters. 2026-07-16 17:55:47 -04:00
adam 10e6539130 Use sgr_reset instead of dim.
Hopefully, I can retire the older color variables soon.
2026-07-16 17:55:47 -04:00
adam 467a74b30d Do not color highlight the space after the sigil 2026-07-16 17:55:47 -04:00
adam ee31fabe1a Remove dead alignment code. 2026-07-16 17:55:47 -04:00
adam a889ee3a68 Source the cwd script for first prompt gen. 2026-07-16 17:55:47 -04:00
adam 1576e944ee Dynamic dir-change handling for git probe. 2026-07-16 17:55:47 -04:00
adam 923077453a Fix forgotten debug leak. 2026-07-16 17:50:31 -04:00
adam 1d0dc03d89 Let's add a few more symbols. 2026-07-16 17:50:31 -04:00
adam bcb388407c Reduce git invocations for prompt gen. 2026-07-16 17:50:30 -04:00
adam 93153525e8 Prompt sigil update uses shift, instead of math 2026-07-16 17:50:30 -04:00
adam 53740b4a2c Improve startup times for sigil generation. 2026-07-16 17:50:30 -04:00
adam 7934af92aa Let's make shell files look a bit different. 2026-07-16 17:50:30 -04:00
adam c4d61bb293 Make git ahead and behind use one command.
This reduces the number of forks per command line in git directories.
2026-06-29 10:17:38 -04:00
adam ea96ee93f6 Migrate git branch symbol gen to static
This should cut down on forks when within the git
handling part of prompt gen.
2026-06-28 08:42:56 -04:00
adam 51eca1ca94 Make LS_COLORS dynamic via __build_sgr_code. 2026-06-28 01:45:05 -04:00
adam 79d6e087ce Battery control not an env-var 2026-06-28 01:45:05 -04:00
adam a7d9745e41 Prompt sigil uses shift not arithmetic. 2026-06-28 01:45:04 -04:00
adam 1c1365214a Another refcolor 2026-06-28 01:45:04 -04:00
adam 34dfdb60b9 Autogen CSHENV_HOSTNAME from suffix 2026-06-28 01:45:04 -04:00
adam cc1f458127 TTY Line discovery via shell not fork. 2026-06-28 01:45:04 -04:00
adam f6b6d4ad98 Shuf detection doesn't use an env-var. 2026-06-28 01:45:04 -04:00
adam 2ddb0fc662 Revenge of the 2-digit years
Now that we're deep into the 21st century, we can probably go to
the 2-digit form.
2026-06-26 22:09:48 -04:00
adam 68507b0252 Fix bug in detecting battery... 2026-06-26 22:09:48 -04:00
adam b3f2c2c4f4 Fix battery auto-detect on Linux 2026-06-26 15:55:31 -04:00
adam adc5d3f6ee Don't panic if no batteries are found on Linux. 2026-06-25 16:47:09 -04:00
adam 16ba1a5897 Move battery thresholds to static defs.
This reduces per-prompt overhead a bit, as these
never change, so it was just useless string bashing
and parsing.
2026-06-24 02:53:39 -04:00
adam 10992c1424 Uncouple the "impossible" branch of changed colors.
This improves startup speed and next-prompt speed by giving them
flatter logic paths.  At the cost of needing to maintain the basic
idea in two places.
2026-06-24 02:45:34 -04:00
adam 429f45d1e8 Add debug message to sigil generation.
This will help indicate how much time is spent on it.
2026-06-24 02:45:08 -04:00
adam 2640c6cb25 Make sgr builder more portable.
I forgot a few BASHisms in the code.
2026-06-24 02:05:21 -04:00