After installing a fresh logic board, I assumed a complete system restore was necessary, so I opted for the latest macOS upgrade, installing Big Sur.
As I’ve discovered, my reliance on the bash shell has waned, with macOS now leveraging zsh, enabling seamless enhancements to my bash_profile configuration. That’s one reason I’m hesitant to upgrade to new operating systems; in fact, there are several reasons why I’ve struggled to stick with macOS Mojave.
My makes an attempt:
- As macOS doesn’t recognize `~/.bash_profile`, attempting to update `zsh_profile`, `.zprofile`, and `.profile` with necessary instructions to enable CLICOLOR and LSCOLORS; unfortunately, this effort yielded no positive outcome despite saving changes, confirming the save state, exiting, and restarting the computer without any noticeable impact.
- Furthermore, upon opening my home directory’s zsh configuration file, I appended the necessary export statements alongside a conditional command in the ~/.zshrc file.
if [ -f “$HOME/.bash_profile” ]; then
. ~/.bash_profile;
fi
The issue was with the thread from Stack Overflow, which unfortunately did not yield the desired results even when tried together. - I additionally navigated to my Terminal Preferences and beneath Common settings, altered the ‘Shell opens with’ from Default login shell to ‘Command (full path): /bin/bash; nonetheless, this adjustment didn’t yield any noticeable effects even after I confirmed that my bash_profile remained current on this new setup of Big Sur.
- Upon clicking ‘Profiles’ and selecting the Superterm tab, I’ve specified terminal as xterm in an attempt to also modify my default colour scheme; unfortunately, it did not take effect.
- I brutally forced the colour scheme by modifying the ANSI codes from magenta and cyan to purple and blue, but this hack only partially worked for the terminal, ultimately resulting in an undesired inversion of the Vim colours that I detest. Here’s a new look for my terminal: I’ve configured Vim exactly as I require for traditional Linux syntax highlighting.
While technically feasible, I don’t see a compelling reason to modify ANSI colors again or adjust LineNr, ctermfg, and Tagname settings in my ~/.vimrc file. Would I need to implement a workaround for the shell to accurately display my Z shell’s colour scheme in terms of basic Linux xterm colors?
Unable to tolerate zsh’s coloration scheme, I yearn for my trusty bash highlighting theme, but, alas, Mojave is out of bounds, and whispers of Monterey’s notorious battery drain weigh heavily on my decision? I recently replaced my old battery with a brand-new one, and everyone seems more enthusiastic about the latest release of Big Sur than about upgrading to the latest operating systems.
You can try adding the following lines to your ~/.zshrc file:
compctl -U -x
autoload -Uz vcs_info
vcs_info_cmd,_g
PROMPT=’%F{blue}%n%f %f%{$FG[green]%$(git branch 2>/dev/null | grep ^* | cut -c7-)^%} %f%{%T%m%} ‘