From fde20acf72cc68341a74f45eb5dd32f03bda1784 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 2 Jul 2025 12:26:56 -0400 Subject: [PATCH] MacOS X (Darwin) specific tweaks. --- tcshrc.prompt.defs | 6 ------ tcshrc.system.Darwin | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 tcshrc.system.Darwin diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index 82deb97..b08b7e3 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -105,12 +105,6 @@ foreach ch ($referencechars_raw) set referencechars=( $referencechars `printf "${unicode}"` ) end -if( $CSHENV_SYSTEM == "Darwin" ) then - # Macos seems to dislike using printf to construct unicode chars. - # So you get a dumb set of ABCDXYZ - set referencechars="A B C D X Y Z" -endif - # Rotation alias precmd 'source ${CSHENV_DIR}/tcshrc.prompt.final' #alias postcmd echo doit diff --git a/tcshrc.system.Darwin b/tcshrc.system.Darwin new file mode 100644 index 0000000..046e8ae --- /dev/null +++ b/tcshrc.system.Darwin @@ -0,0 +1,32 @@ +if( $?CSHENV_DEBUG ) then + echo "Sourcing tcshrc.system.Darwin..." +endif + +# Set the acknowledgement bit, essentially +setenv CSHENV_SYSTEM_CONFIGURED Darwin + +setenv LESS -erF +setenv PAGER less + + +# A bunch of stuff from Homebrew has to patch my environment... + +# Homebrew stuff +setenv HOMEBREW_PREFIX /opt/homebrew; +setenv HOMEBREW_CELLAR /opt/homebrew/Cellar; +setenv HOMEBREW_REPOSITORY /opt/homebrew; +set path=( /opt/homebrew/bin /opt/homebrew/sbin ${path} ) +test ${?MANPATH} -eq 1 && setenv MANPATH :${MANPATH}; +setenv INFOPATH /opt/homebrew/share/info`test ${?INFOPATH} -eq 1 && echo :${INFOPATH}`; + +alias printf gprintf + +if( $?CSHENV_DEBUG ) then + echo "Done sourcing tcshrc.system.Darwin..." +endif + +########################### +# vim: ft=tcsh +########################### + +