27 Commits

Author SHA1 Message Date
fde20acf72 MacOS X (Darwin) specific tweaks. 2025-07-02 12:28:16 -04:00
4ee7b707d0 Merge branch 'master' of github.com:adamlsd/cshenv 2022-06-09 18:08:22 -04:00
764d163913 Updating my preferred sigil set a bit. 2022-06-09 18:08:10 -04:00
00338131e5 Colour for nesting depth prompt is now modernized 2022-06-05 15:37:08 -04:00
2a3af31e7a Modernize the tty/line prompt. 2022-06-05 15:03:03 -04:00
a9485b4b3b Fixed up the prompt sigil itself. 2022-06-05 12:35:21 -04:00
28ca17b30f Old prompt should just use an SGR reset.
This makes it more simple.
2022-06-05 03:24:30 -04:00
b96eb5ca34 User name colour prompt updated. 2022-06-05 03:12:22 -04:00
286e9117f1 Host colour rewritten. 2022-06-05 01:38:23 -04:00
430a7e8b0e I've started the process of redesigning the colours. 2022-06-04 13:15:10 -04:00
328c1c13e3 Fine grained control over prompt elements.
Use `CSHENV_DISABLE_PROMPT_` env vars to control these.
2022-06-04 08:56:35 -04:00
c9f70665c4 Make unicode char construction more portable. 2022-04-22 17:37:32 -04:00
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
51e339ce74 Fix prompt shuffling when shuf is not found. 2022-04-15 15:31:44 -04:00
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
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
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
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
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
df563da88b Merge branch 'sunos-tweaks' into initial-rework
Conflicts:
	tcshrc.prompt.defs
2014-02-17 14:55:39 -05:00
2da953664e Fixed tabbing to real tab chars per ADAM style. 2014-02-15 20:06:37 -05:00
efc0aec56e Changed linux comment to be more fair and accurate 2014-02-15 20:03:51 -05:00
2806581d10 Documented SysV-like prompt width in source. 2014-02-15 20:03:16 -05:00
3163af4283 SunOS was not in the check list for screen width. 2014-02-03 17:05:12 -05:00
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
f4ad367437 TCSHRC prompt works now, in new environment. 2014-01-26 15:17:26 -05:00
d0571f211c Initial svn import 2013-12-31 07:32:25 -05:00