Commit Graph

35 Commits

Author SHA1 Message Date
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 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 c37ae62f1d All the debugging I could find. 2026-06-24 00:46:26 -04:00
adam ad69be9fe2 More debug prints converted 2026-06-23 23:36:36 -04:00
adam 94ac6c00d3 Add some new sigils for variety 2026-06-18 09:05:38 -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 91882e7c6d Setting prompt to new should re-enable dynamic 2026-02-15 22:59:18 -05:00
adam 4dafa86f71 Gracefully handle no unicode in printf 2026-02-15 22:51:51 -05:00
adam fde20acf72 MacOS X (Darwin) specific tweaks. 2025-07-02 12:28:16 -04:00
adam 4ee7b707d0 Merge branch 'master' of github.com:adamlsd/cshenv 2022-06-09 18:08:22 -04:00
adam 764d163913 Updating my preferred sigil set a bit. 2022-06-09 18:08:10 -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 a9485b4b3b Fixed up the prompt sigil itself. 2022-06-05 12:35:21 -04:00
adam 28ca17b30f Old prompt should just use an SGR reset.
This makes it more simple.
2022-06-05 03:24:30 -04:00
adam b96eb5ca34 User name colour prompt updated. 2022-06-05 03:12:22 -04:00
adam 286e9117f1 Host colour rewritten. 2022-06-05 01:38:23 -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 c9f70665c4 Make unicode char construction more portable. 2022-04-22 17:37:32 -04:00
adam 2f353a600d Fix the prompt tagging in macosx.
Something is dumb with the unicode Terminal... so I'm punting for now.
2022-04-15 15:52:44 -04:00
adam 51e339ce74 Fix prompt shuffling when shuf is not found. 2022-04-15 15:31:44 -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
adam 461ad44738 Add a few more instances of special chars.
I don't usually use them, but they could be useful.
2021-03-02 20:02:57 -05:00
adam 41fb29eef0 Add prompt reference symbols.
This one is a bit shaky still, but I now have symbolic,
colour-coded tags in the prompt.  This can be used to point out
interesting lines in pair programming.
2021-03-02 06:47:52 -05:00
adam 2cfaa4d64a Updated the prompt code.
I removed the need for the ~/.tcsh_cache directory.  The right-side
alignment is handled with terminal control codes.  I stick
exclusively to ANSI/VT-100 control codes.  Everything should support
that by now, it's 2021!
2021-03-02 06:27:19 -05:00
adam 6eca81da3d AIX systems need to use the SYSV stty(1) variant.
In generating CSHENV prompts, I used stty(1) to find the width
of the current terminal, at sourcing time.  SYSV and BSD use
different output formats.  Presently I have tcshrc.prompt.defs
default to 80 columns when I don't know how to parse stty(1)'s
output.  AIX is known to be a SYSV variant, and I've added a
case to handle this.
2014-04-08 15:02:29 -04:00
adam df563da88b Merge branch 'sunos-tweaks' into initial-rework
Conflicts:
	tcshrc.prompt.defs
2014-02-17 14:55:39 -05:00
ADAM David Alan Martin 2da953664e Fixed tabbing to real tab chars per ADAM style. 2014-02-15 20:06:37 -05:00
ADAM David Alan Martin efc0aec56e Changed linux comment to be more fair and accurate 2014-02-15 20:03:51 -05:00
ADAM David Alan Martin 2806581d10 Documented SysV-like prompt width in source. 2014-02-15 20:03:16 -05:00
ADAM David Alan Martin 3163af4283 SunOS was not in the check list for screen width. 2014-02-03 17:05:12 -05:00
adam faf57386a8 Corrected cache-dir creation variable.
I didn't test the script on a virgin system, until I did it on a new
cygwin system.  Now I have discovered this, and I have fixed it to properly
create the cache dir again.
2014-02-02 16:56:59 -05:00
adam f4ad367437 TCSHRC prompt works now, in new environment. 2014-01-26 15:17:26 -05:00
adam d0571f211c Initial svn import 2013-12-31 07:32:25 -05:00