If you've spent any time configuring user authentication on... Full Story
By Manny Fernandez
May 1, 2020
Switching back to Bash on new MacBook Pro
So I made the plunge during this coronavirus quarantine and bought the new 2020 MBP with 64GB of RAM. Mostly because of the RAM but also for the new keyboard…. but I digress. Well on my other MBP, I had upgraded from previous versions prior to macOS moving to ZSH instead of BASH. I am pushing back and will hold out as long as I can with BASH. Here is how to switch between the two. This combines other posts I have done about removing ZSH warning, and another article about removing the computer name from BASH.
Lets get started
You can change the default shell per user. By default, any new user will have the ZSH assigned to them. Since I got a new laptop, I created a new user and it got the ZSH shell. In your macOS GUI, go to System Preferences then Users & Groups .

You will need to unlock the security settings on the bottom left.

Obviously, when the lock is closed, the configuration is ….. you guessed it… Locked.

Once you log in, you should see the lock, unlocked.
Now you will find your user

Next, we will hit the ^ or the control key and click on the username to the left. You should see Advanced Options , click that.

As you can see, there is a Login shell section on this screen.

You can choose the dropdown and choose from various shells.
Once this is done and you enter into the shell, you will see Computer Name on the screen.
You will now need to create a new file in the user home directory or ~ folder.
You will need to create the file. I use vi but you can use your favorite text editor.
cd ~ vi .bashrc
Once there, you will need to hit the lowercase i to edit. Enter the line below.
PS1='\u:\w\$'
Once you enter the info, hit the esc key (Now a physical key on the new MBP) then :x and enter
Now we will make it so the changes take effect every-time you launch the terminal.
vi .bash_profile

You will need to hit the lowercase i again and enter the following (as above)
source ~/.bashrc export BASH_SILENCE_DEPRICATION_WARNING=1
Optional
Optionally, you run the following commands
chsh -s /bin/zsh to change back to zsh or chsh -s /bin/bash to move to bash
One you run the optional command, you will need to close the terminal app and reopen it.
Hope this helps
Recent posts
-
-
DNS is one of those technologies that quietly underpins... Full Story
-
BGP issues on FortiGate firewalls usually trace back to... Full Story
-
Every time your laptop talks to your router, a... Full Story
-
If you've spent any time configuring NAT on a... Full Story
-
If you have spent any time configuring firewall policies... Full Story
-
High availability on FortiGate is one of those features... Full Story
-
If you've configured SD-WAN on a FortiGate, you've almost... Full Story
-
FortiLink is the management protocol that turns a FortiSwitch... Full Story
-
FortiSwitches are pretty rock solid from Mean Time Between... Full Story
-
This is a quicky tip. Have you ever gone... Full Story
-
DNS is one of those quiet pieces of internet... Full Story
-
This article is an updated version of the previous... Full Story
-
You will add ns2 as a secondary (slave) BIND9... Full Story
-
In the process of deploying my lab, I needed... Full Story
-
RFC 8805, used to be known as Self-Correcting IP... Full Story
-
Years back, I wrote an article about certificate pinning. ... Full Story
-
FortiGates have the ability to send alerts to Microsoft... Full Story
-
In this post, I am going to walk through... Full Story
-
Troubleshooting VoIP on a FortiGate can feel like trying... Full Story
-
Prior to FortiOS 7.0, there were three commands to... Full Story
-
In this post, I am going to go over... Full Story
-
What we are going to do: We are going... Full Story
-
Choosing between FGCP (FortiGate Clustering Protocol) and FGSP (FortiGate... Full Story
-
Creating a VLAN on macOS (The "Pro" Move) A... Full Story
-
This blog post explores the logic behind how macOS... Full Story
-
Pretty Fly for a Wi-Fi Tell My Wi-Fi Love... Full Story
-
Part of my daily gig is creating BoMs (Bill-of-Materials)... Full Story
-
ICMP introduces several security risks, but careful filtering, rate... Full Story
-
The command diag debug application dhcps -1 enables full... Full Story
-
In the world of FortiOS, execute tac report is... Full Story
-
LLDP; What is it The Link Layer Discovery Protocol... Full Story
-
What it actually does When you run diagnose fdsm... Full Story
-
Monkey Bites are bite-sized, high-impact security insights designed for... Full Story
-
I have run macOS in macOS with Parallels but... Full Story
-
Don't be confused with my other FortiNAC posts where... Full Story
-
This is the third session in a multi-part article... Full Story
-
Today I was configuring key-based authentication on a FortiGate... Full Story
-
Netcat, often called the "Swiss Army knife" of networking,... Full Story
-
At its core, IEEE 802.1X is a network layer... Full Story
-
In case you did not see the previous FortiNAC... Full Story
-
This is our 5th session where we are going... Full Story
-
Now that we have Wireshark installed and somewhat configured,... Full Story
-
The Philosophy of Packet Analysis Troubleshooting isn't about looking... Full Story
-
Overview FortiOS 8.0 introduces custom tags as a first-class... Full Story
-
These are two distinct mechanisms on FortiOS, and conflating... Full Story
-
Replacement messages are the pages and text blocks that... Full Story