Command line – Can’t get Zsh to resemble bash_profile with xterm Linux colors for MacOS

Command line – Can’t get Zsh to resemble bash_profile with xterm Linux colors for MacOS

I installed a new motherboard and thought I would have to reinstall MacOS, so I upgraded to the final version of Big Sur.

I noticed that the bash shell is no longer used and MacOS now uses zsh and simply edits my bash_profile file. This is one of the reasons why I don’t like upgrading to newer operating systems, but also can’t stick with Mojave any longer for several reasons.

My attempts:

  1. Since nano ~/.bash_profile is no longer honored by MacOS, I tried simply updating zsh_profile, .zprofile and .profile with my original commands, which were exactly what I wanted for my profile: export CLICOLOR=1 export LSCOLORS = GxFxCxDxBxegedabagaced and unfortunately this did nothing after saving properly, confirming the save status and exiting and restarting the computer each time without change.
  2. I also opened ~/.zshrc and added the export commands along with the following conditional command: if [ -f ~/.bash_profile ]; Then . ~/.bash_profile; fi, which was in a Stack Overflow thread, but that didn’t work either.
  3. I also went into my terminal settings and in the general settings changed “Open shell with” from the default login shell to “Command (full path) /bin/bash” but that didn’t change anything, even when I made sure that also my bash_profile is updated via this new installation of Big Sur.
  4. When I clicked on “Profiles” and selected the “Advanced” tab, I declared Terminal as xterm, hoping that this would also update my main color scheme, but no.
  5. I “brute forced” the colors by changing the ANSI colors from magenta and cyan to red and blue, which partially worked for the terminal, but when I checked what Vim looked like afterwards, my colors were obviously inverted, which I don’t like it. So I reset the ANSI colors. I have Vim exactly how I want it for traditional Linux highlighting.

Technically I could change the ANSI colors back in the terminal settings and just change my highlight colors for LineNr, ctermfg and tagname in my ~/.vimrc file, but I really don’t feel like I need to make such changes. I would much prefer it if the system would simply see my ZSH color scheme correctly rather than the classic Linux Xterm colors.

I can’t stand the zsh color scheme and just want the old bash highlighting theme, but as mentioned I can’t use Mojave anymore and Monterey has a bad reputation for using up batteries. I also replaced my old battery with a brand new one and everyone seems to like the final version of Big Sur instead of upgrading to the latest operating systems.

How can I change zsh to work like it used to with bash?

Previous Article

A market share of 1% is forecast by 2025

Next Article

Mullenweg pauses WordPress services – hopes to reopen next year

Subscribe to our Newsletter

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨