Commit Graph

51 Commits

Author SHA1 Message Date
adam 98507d229b Merge branch 'master' into sysadmin-master
* master:
  Move battery thresholds to static defs.
  Uncouple the "impossible" branch of changed colors.
2026-06-25 12:34:55 -04:00
adam 6ed9a65651 Merge branch 'pre-master' into sysadmin-master
* pre-master:
  Add debug message to sigil generation.
  Make sgr builder more portable.
  Dynamic prompt colors cacheing loop
  New safe_source logic.
  All the debugging I could find.
  More debug prints converted
  Upgrade some debug printing to debug statements.
  Add `_debug` primitive
  Fix shell level hiding
  Hiding shell level at 1 is the default.
  Convert color script to portable POSIX shell
  Overhaul the installation and detection mechanisms
  No need to hardcode this anymore.

 Conflicts:
	startup_hooks/tcshrc
	tcshrc.prompt.final
2026-06-25 12:34:31 -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 5d12f2dc32 Dynamic prompt colors cacheing loop 2026-06-24 01:05:35 -04:00
adam c37ae62f1d All the debugging I could find. 2026-06-24 00:46:26 -04:00
adam 265ed785db Fix shell level hiding 2026-06-23 21:13:03 -04:00
adam 746b839965 Dynamic prompt colors cacheing loop 2026-06-23 19:10:18 -04:00
adam 920493abee All the debugging I could find. 2026-06-23 19:09:17 -04:00
adam c1ac83d115 More debug prints converted 2026-06-23 17:00:49 -04:00
adam 222bdc69bc Hiding shell level at 1 is the default. 2026-06-23 15:01:51 -04:00
adam cab9f98ef9 No need to hardcode this anymore. 2026-06-19 16:41:24 -04:00
adam 26b3d58155 Merge branch 'master' of https://gitea.nerdland.org/adam/cshenv into master
* 'master' of https://gitea.nerdland.org/adam/cshenv:
  Gracefully handle no unicode in printf
  Probe the local printf for unicode

 Conflicts:
	tcshrc.aliases
2026-02-15 23:00:22 -05:00
adam 4dafa86f71 Gracefully handle no unicode in printf 2026-02-15 22:51:51 -05:00
adam 098ffd6c34 Added a whole dynamic prompt tuning command 2026-02-15 18:06:07 -05:00
adam 726ab595ae Dirstack with spaces in paths causes issues.
So for now, I'm burning a process on every command, to check for its
size by linecount.
2025-11-18 00:35:23 -05:00
adam 50e8a1dfd7 Fix prompt delimiters when some tokens are disabled. 2025-08-08 14:30:09 -04:00
adam 88bb192ca3 Directory stack size shouldn't use a PID.
Use in-shell array size counting.
2025-03-07 23:13:16 -05:00
adam fe472e09cb Battery colour shouldn't be literals! 2025-03-07 23:12:59 -05:00
adam 67f4542811 A bit of style cleanup. 2025-03-07 23:12:50 -05:00
adam 934e09ab00 Dirstack support in prompt. 2024-06-17 12:55:59 -04:00
adam 0f04378898 Get pluses and minuses lined up. 2022-11-08 18:25:08 -08:00
adam 3cb2ac5a0e Silence error on git branches without upstreams. 2022-11-08 18:25:08 -08:00
adam 007f7a7e26 Colors support for git ahead/behind. 2022-11-08 18:25:08 -08:00
adam 39999fa946 Correct the ahead/behind in prompt for git. 2022-11-08 18:25:08 -08:00
adam 425535e4d2 Make prompt list ahead/behind for git. 2022-11-08 18:25:08 -08:00
ADAM David Alan Martin 26fce0ca4b Fix prompt layout slightly. 2022-06-16 17:20:41 -04:00
adam b3157c76a8 Adding session support. 2022-06-05 23:28:06 -04:00
adam e1e030f612 Percent, branch, and @ all had to be done at once.
Because they were kinda intertwined in the colours I chose.
2022-06-05 23:15:18 -04:00
adam 00338131e5 Colour for nesting depth prompt is now modernized 2022-06-05 15:37:08 -04:00
adam 2a3af31e7a Modernize the tty/line prompt. 2022-06-05 15:03:03 -04:00
adam 78a3b59499 Add debugging print. 2022-06-05 14:58:59 -04:00
adam a9485b4b3b Fixed up the prompt sigil itself. 2022-06-05 12:35:21 -04:00
adam b96eb5ca34 User name colour prompt updated. 2022-06-05 03:12:22 -04:00
adam b9764bd8a6 Now updated brace_color... 2022-06-05 02:19:40 -04:00
adam 286e9117f1 Host colour rewritten. 2022-06-05 01:38:23 -04:00
adam 8b398af672 Did rework for text_color variable. 2022-06-04 15:13:28 -04:00
adam 430a7e8b0e I've started the process of redesigning the colours. 2022-06-04 13:15:10 -04:00
adam 328c1c13e3 Fine grained control over prompt elements.
Use `CSHENV_DISABLE_PROMPT_` env vars to control these.
2022-06-04 08:56:35 -04:00
adam 910f194c4e Use a more portable branch symbol.
(I need a way to auto-detect the powerline one and use it when that
is present.)
2022-06-04 08:56:32 -04:00
adam 861132a187 Use the branch symbol in the Supplementary Special purpose Plane
It seems to be in the fonts I like to use... so...
2022-05-18 00:09:50 -04:00
ADAM David Alan Martin 79ab6245ee Update prompt to show git branch name.
I should take some time, go back, and restructure some
of how the prompt gets built/calculated.  But this is fine
for now.
2022-05-16 15:28:48 -04:00
ADAM David Alan Martin 6e4d743af6 Prevent repeated colours or symbols. 2022-04-29 15:26:06 -04:00
adam 8672bf09e9 Battery level support for macosx. 2022-04-15 15:59:26 -04:00
adam f725a1d9e0 Adjust for dumbness in how macos sed replaces things.
`tr` is more straightforward.
2022-04-15 15:58:34 -04:00
adam 5c7b5f3ff8 DUH.... sed replaces with global... 2022-04-15 15:53:50 -04:00
adam 51e339ce74 Fix prompt shuffling when shuf is not found. 2022-04-15 15:31:44 -04:00
adam d53a244b5f Make battery level label italic and more visible. 2022-04-15 15:13:00 -04:00
adam 69e71ce4d1 Make battery device configurable 2022-04-14 16:40:54 -04:00
adam 1ea3331a3a Add battery level into prompt.
Has to be turned on by an env variable, and I only tested it on one
laptop so far.
2022-04-14 13:54:03 -04:00